LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   One More ? Regarding at (https://www.linuxquestions.org/questions/programming-9/one-more-regarding-at-229461/)

Rv5 09-11-2004 05:33 PM

One More ? Regarding at
 
ive looked through man and the net. can the at command be used to schedule a job more then once? or is it a one time only? what if i want to schedule a job to run every hour for the next 24 hours? i couldnt see how to use at for this, but at seems like it should be the way to go.

Proud 09-11-2004 05:38 PM

Have you checked cron?

Cedrik 09-11-2004 05:38 PM

A little knowledge of vi may help...

crontab -e
<press a to go to edit mode>
0 * * * * /path/to/your/program
<type [ESC],[:wq]>

Then your program will run every hour

man 5 crontab for more infos

Rv5 09-11-2004 11:35 PM

cron will be what i use next, but im trying to understand all that the at command can do.

jlliagre 09-12-2004 04:36 AM

As proud and cedrik already suggested, cron is better suited for repetitive tasks.

If you anyway insist using at, nothing forbids to reschedule the next execution from within you at job.


All times are GMT -5. The time now is 09:56 AM.