Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Preventing Other Scripts From Running

Featured Replies

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

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

  • 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

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.