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.

Running server-side bash scripts

Featured Replies

Hi all,

I hav a general problem to get a bash-script running on Filemaker 10 Server OSX. When I run a script in terminal, everything works fine. I even can run the script with mouseklicks. Also simple scripts like:

#!/bin/bash

echo "hallo"

do not work.

Finally I would like to run the script below. To save a backup 7zip compressed to another disk.

On the 'Server-Log' (in German 'Protokollanzeige') I get the Message:

Error 692

Systemscript "BackUp.command" did return Not Null Status 2

#!/bin/bash

rm /Users/admin/Dropbox/Kiprax_fp7/kiprax_emma.7z;

/Users/admin/BackUp/7za a -r -t7z -mx=5 -ppassword /Users/admin/dropbox/kiprax_fp7/kiprax_emma.7z /Users/admin/BackUp/*.fp7

What could be wrong?

Joseph

This is probably an OS level permissions issue. FileMaker Server runs in its own security bubble. The OS level scripts possibly do not have the appropriate privileges when run from FileMaker Server. It's also likely the script lacks "executable" privileges. Use something such as BatchMod to change that.

Regarding the backups and zips, take a look at Backups, Backups, and More Backups from Wim Decorte's superb web site.

HTH.

Steven

  • Author

Hello Steven,

thank you for your post. It was as we would say: "you hit the nail on its head".

I thougt to have checked all the permissions. But the destination-Folder was only on read for the 'fmadmin' Group.

Joseph

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.