Script Scheduler - issue

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
f1ighter
Newbie
Posts: 1
Joined: Mon Apr 10, 2017 6:25 pm

Script Scheduler - issue

Post by f1ighter » Mon Apr 10, 2017 6:32 pm

I have created seperate scripts for multiple programs. I just found the the Run When tab and set each script up to run after so many minuts. They are 6,11,12,28,31,31 mintues each. Eventually one or more of them meet up and end up running at the same time and then nothing happens. Is there a way to tell the scheduler to wait to run the script if another is running? Kind of like sitting in a q waiting.

mightycpa
Automation Wizard
Posts: 343
Joined: Mon Jan 12, 2004 4:07 pm
Location: Vienna, VA

Re: Script Scheduler - issue

Post by mightycpa » Mon Apr 10, 2017 9:46 pm

You could always read and write to an ini file at the beginning and end of each run.

Read first, if busy, then wait, keep checking until done.
Write "busy" as soon as you get the clear signal that it's ok to run.
Write "done" as soon as your script is over.

But I'd be interested to learn if there's a slicker way.
"A facility for quotation covers the absence of original thought." - Lord Peter Wimsey

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts