TJ3 Posted September 22, 2007 Share Posted September 22, 2007 (edited) Hey, I'm using cron to schedule AutoIT scripts. Does anyone know the cron format to do the following: Main script: Runs every set period (could be every 10 mins, every 1 hour, etc. and is decided at the time). Secondary script: Runs two minutes after the Main script (and here's the clanger) whatever the set period is. So it's not as easy as setting the main script at every 10 minutes and the secondary script at every 15 minutes because if repeated, they get out of step. Is there a way of scheduling so precisely in cron? Thanks all, P.s. It's not as simple as putting (Sleep 2minutes and then run Secondary Script) in the Main script - as the whole point of the Secondary script is to clear things up if things go wrong with the Main script. Again, main thanks Edited September 22, 2007 by TJ3 Link to comment Share on other sites More sharing options...
SkinnyWhiteGuy Posted September 22, 2007 Share Posted September 22, 2007 Make a bash script to run the first script, sleep 2 minutes, then run the second, and put that bash script in as the cron job. Link to comment Share on other sites More sharing options...
TJ3 Posted September 22, 2007 Author Share Posted September 22, 2007 (edited) Make a bash script to run the first script, sleep 2 minutes, then run the second, and put that bash script in as the cron job.Awesome, many thanks.Your avatar reminded me of:Click Edited September 22, 2007 by TJ3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now