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.

I'm struggling with launching scripts from FileMaker 16 Server Schedule

Featured Replies

$ exa -lT /Library/FileMaker\ Server/Data/Scripts/
drwxrwxr-x    - fmserver       7 Jan 16:20 /Library/FileMaker\ Server/Data/Scripts/
.rwxrwxr-x   48 fmserver       7 Jan 16:20 └── timestamptotmp.sh

here is the content of the script:
 

$ cat timestamptotmp.sh
#!/bin/bash

echo $( date ) >> /tmp/timestamp.txt

The script runs fine as user fmserver when ran from command line and as any other user on the system as follows:
 

sudo su
su fmserver

/Library/FileMaker\ Server/Data/Scripts/timestamptotmp.sh
/Library/FileMaker\ Server/Data/Scripts/timestamptotmp.sh
/Library/FileMaker\ Server/Data/Scripts/timestamptotmp.sh
/Library/FileMaker\ Server/Data/Scripts/timestamptotmp.sh
/Library/FileMaker\ Server/Data/Scripts/timestamptotmp.sh
$exa -lT /tmp/
drwxrwxrwt   - root           7 Jan 16:31 /tmp
.rw-r--r-- 140 fmserver       7 Jan 16:46 └── timestamp.txt


 

$ tail -f /tmp/timestamp.txt
Mon Jan 7 16:31:22 CET 2019
Mon Jan 7 16:46:40 CET 2019
Mon Jan 7 16:46:44 CET 2019
Mon Jan 7 16:46:47 CET 2019
Mon Jan 7 16:46:55 CET 2019

When I try to run this script from the scheduler the error is "User Aborted" for type System Script; and "Script is Missing or is invalid" when ran as part of a Script Sequence.

Anyone with experience in this? I have solved the issue "User Aborted" `chmod 777 /Library/FileMaker\ Server/Data/Scripts/` So I can run some "System Script"s, but for "Script Sequence" the same scripts that runs as "System Scripts" does not run.

I suspect wrong error message.

I find no details in FileMaker Server console logs, and`tail -f /var/log/system.log` also has no more info.

However here I find the actual error:
 

$ tail -f /Library/FileMaker\ Server/Logs/stderr
fmshelper: failed to exec() '/Volumes/FMTestServer/Library/FileMaker Server/Data/Scripts/timestamptotmp.sh', error Exec format error

 

Edited by ggt667

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.