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.

Can't launch shell script via server schedule (MacOSX Server & FM 13)

Featured Replies

  • Newbies

Hi all,

 

I’m trying to execute a shell script from a FileMaker Server schedule. FM 13 and MacOSX Server 10.8. It’s a simple script to put a message in the syslog to test. Running from the Terminal app works fine but from within FM Server it doesn’t seem to kick off (no error messages anywhere I can find).

 

Things to consider:

 

- MacOSX Server 10.8 and FileMaker Server 13

 

- File is in the right location (/Library/FileMaker Server/Date/Scripts/) as I'm able to select it when creating the schedule

 

- fmserver is the owner and fmsadmin is the group of the .sh file

 

- I’ve tried permissions of 755 and 777

 

- File contents (following 2 lines):

#!/bin/bash

syslog -s -l error "This is a test."

 

- I’ve tried #!/bin/bash and #!/bin/sh

 

- Running from the terminal app works as expected - I see the message in the Console app (using either /bash or /sh)

 

- When I run the server schedule, FM server's Event.log file shows:

  2015-04-03 11:12:27.866 -0400 Information 146 XXXXXXXX Schedule "test" run now by "YYYYYYY".

 

  There's no succeeding line of a process ID being spawned so it looks like it's not even trying to execute the script.

 

- The server schedule has the default settings for the account (fmserver)

 

Anyone have any bright ideas of why this isn’t working?

 

Mark

Hey, I am having a similar issue trying to run an AppleScript. I get the Aborted by user error.

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.