June 17, 200223 yr I think i've FINALLY figured out why my scheduled scripts sometimes crash and other times run fine without any explanation. I have a script that runs every 5 mintues. At scheduled times, it executes another script. Unfortunately, they sometimes execute on top of each other (Another goes while the first is still running). I was wondering if there is any way to "pause" the first script while the second is running. As I'm writing this, i realized i could set up a variable and if/then an exit code of the variable ='s, but still, is there an easier way? Thanks -j
June 17, 200223 yr As far as I know, the only way to do this is to setup your own system of semaphores and test to see if one script is running before the other is allowed to execute. We commonly do this with scripts triggered automatically by a barcode scan. We must make sure that a second scan doesn't set the barcode processing in motion a second time, before the first scan is complete. -bd
June 17, 200223 yr Author I set up a global field "gIsAScriptRunning" with a value of 1 or 0. If the reoccuring script executes, and the value is one, it just exits, and waits until it's next reoccurance. I'll give that a few days, and see if it's now "happy" ugh. Thanks -j
Create an account or sign in to comment