Jump 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.

How do I make a OS script FAIL in a script sequence?

Featured Replies

Hello

What do I need to do to make the system script of a scheduled script sequence FAIL?

In the documentation it says that the system script needs to return "0" for the FileMaker Script portion to start. I observed this to be true with Server 10.0v1 on OS X Server 10.5.X

Now I am running Server 10.0v2 on OS X server 10.6.2 and even a .sh file with nothing in it except #!/bin/sh will run, evaluate to true and let the fileMaker script run.

Has anyone encountered this with server 10.0v2?

Currently my bash script ends with:

if [ $Sucess -gt 0 ]; then

echo 0

else

echo "DO NOT RUN!"

fi

Both cases will allow the FileMaker portion of the script sequence to run. (I also tried # echo "DO NOT RUN!" >&2 and that didn't work either.

Thanks!

Edited by Guest
fixed version numbers

  • Author

ok, I'm a moron and was looking at a debug version of the script that used echo instead of exit.

exit 0 will allow the fileMaker Script to proceed, but exit [anything else] will cause it to fail. (using bash at least.)

so by default an empty script will exit 0 and that's why it was allowing the fileMaker script to proceed after running an empty bash script.

Crisis Averted!

Create an account or sign in to comment

Important Information

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

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.