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

Featured Replies

Using FileMaker 11 on a Mac, there are two files in the "FileMaker Server/Logs/" directory: stderr and stdout, which contain the console output of a bash script run via FileMaker Server scheduled system script. Is there any equivalent on Windows? I'm using FileMaker 12 on Windows Server 2008 R2 and I can't find the console output of my cmd script (when run by FileMaker Server scheduled system script).

 

The reason I'm looking for this output is because my script is failing unless it is run by an Administrator account and I'm having a difficult time debugging it since I can't see the output/errors.

  • Author

I still don't know if FileMaker Server saves the output automatically, but I was able to do it manually by redirecting the output. I created a generic "calling" script, which redirects the stdout and stderr to log files in the "FileMaker ServerDataDocuments" directory:

:: FILE NAME  run_cmd_script.cmd
:: LOCATION   FileMaker ServerDataScripts
:: PURPOSE    Redirect output of a cmd script to log files, when run by FileMaker Server.
:: USAGE      Call this script with a single parameter, which is the name of the script to run.
::            The script to run should be in the same directory as this script.

"%~dp0%~1" >>"%~dp0..Documentscmd_stdout.log" 2>>"%~dp0..Documentscmd_stderr.log"

 
I've also started using PowerShell, and was disappointed to find out that PowerShell scripts could not be invoked directly by FileMaker Server. I created a slightly modified version of the above script to run PowerShell scripts:

:: FILE NAME  run_powershell_script.cmd
:: LOCATION   FileMaker ServerDataScripts
:: PURPOSE    Redirect output of a PowerShell script to log files, when run by FileMaker Server.
:: USAGE      Call this script with a single parameter, which is the name of the script to run.
::            The script to run should be in the same directory as this script.

powershell.exe -file "%~dp0%~1" >>"%~dp0..Documentspowershell_stdout.log" 2>>"%~dp0..Documentspowershell_stderr.log"

No, FMS does not automatically output the exit status or any errors from script schedules.  You may find something in the event log.  If you need the output then you have to do what you're doing: explicitly have your OS-level script write to a log file.

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.