LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How Do I Use 'AT' or Cron? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-use-at-or-cron-796128/)

jlucasnog 03-17-2010 04:47 PM

How Do I Use 'AT' or Cron?
 
How can I run a scheduled job in a specific hour minute second (hh:mm:ss)
I tried “at” but I do not know how to send it “seconds”.
Any idea?

smoker 03-17-2010 04:59 PM

You can't send AT seconds, and you can't send cron seconds either.

https://help.ubuntu.com/community/CronHowto
http://www.yolinux.com/TUTORIALS/Lin...sAdmin.html#AT

rweaver 03-17-2010 05:03 PM

I don't believe the default versions of at or cron support seconds.

hockeyman_102 03-17-2010 05:48 PM

really? you need to run it at a specific "second" of the day??

http://en.wikipedia.org/wiki/Cron

jlucasnog 03-17-2010 05:54 PM

Thank you for the answer,

And then is the any other command that I can use to run a command after h hours, m minutes and s seconds?

Tinkster 03-17-2010 06:07 PM

Why the need for seconds? It seems to be a strange approach.

You could conceivable write a wrapper shell script with a "sleep X" and
then whatever you want to run at the second ... but that may bear a little
inaccuracy given the non-real-time time slicing in the ordinary Linux
kernel ... what makes the requirement of a second necessary?


Cheers,
Tink


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