Jump to content

Cron and AutoIt


TJ3
 Share

Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...