Sign in to follow this  
Followers 0
TJ3

Cron and AutoIt

3 posts in this topic

#1 ·  Posted (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 by TJ3

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by TJ3

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0