Skip to content
Advertisement

How can I use an at command in a shell script?

I am trying to use the Unix at command (for setting a job to run at a certain time) in a shell script. The time will be specified by user input using getopts and optarg which seem to be working fine, the problem is at. How do I write the at command into the script to run at a certain time based on input from the user?

Thanks, Ryan

Advertisement

Answer

I’d say

JavaScript

For multiline, consider a “HERE-doc”

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement