at command not running 'today'
Hi all,
I am trying to use the at command to run a script file. The test was quite simple, wanted to run today and every 2 days. Here is the at command: at 15:20 today + 2 days -f every2daysDo.sh Here is the script: echo "every2daysDo.sh ran on $(date)" >> /home/stacy/attest.log I see the 'output' of the echo command in my log file on today+2 days, but not on the day that I start it. Any ideas what I am missing? Thanks, Stacy |
Hi, welcome to LQ!
And you're missing a basic understanding of "at". At is used to run one-offs, so you can't schedule two events w/ one at command. You want it to run twice, you issue it twice. Cheers, Tink |
I'm so sorry, now I see that, I ran across an example (which I can't seem to find now) that indicated otherwise.
Thanks for the help |
Quote:
Cheers, Tink |
All times are GMT -5. The time now is 08:03 PM. |