Jump to content
Server Maintenance This Week. ×

Running server-side bash scripts


This topic is 5263 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This topic is 5263 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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