LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   at command not running 'today' (https://www.linuxquestions.org/questions/linux-newbie-8/at-command-not-running-today-844863/)

stacymez 11-17-2010 11:08 AM

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

Tinkster 11-17-2010 11:12 AM

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

stacymez 11-17-2010 12:20 PM

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

Tinkster 11-17-2010 01:34 PM

Quote:

Originally Posted by stacymez (Post 4162114)
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

Don't be. We all live and learn. :}



Cheers,
Tink


All times are GMT -5. The time now is 08:03 PM.