I need to start “a.out” at a specific date/time.
for example, I want to start “a.out” at 12:10:30 PM very exactly.
Any Idea is appreciated !
I need to start a.out at a specific date/time. for example, I want to
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s what
cronand/oratare for.Since
crononly has a one minute resolution, you may want to set up a script that runs at 12:09.This script would then go into a tight loop checking the date and time until it was exactly 12:10:30, then run your “real” code.
So, your
cronentry would be:and
/mydir/myscriptwould be something like:That’s if you want it running many days at the same time of day. For a one-shot execution, you can still use the script, but use
atto run it (the time string isYYYYMMDDhhmm):Alternatively, if your
atis advanced enough, it may allow sub-minute specification in the-toption so that your wrapper job is not hanging around too long (time string ofYYYYMMDDhhmm.ss):