1 Reply Latest reply on May 13, 2010 9:16 AM by TSGal

    Post-processing script runs even if the FM script returns a non-zero value.

    IwaoAVE!

      Summary

      Post-processing script runs even if the FM script returns a non-zero value.

      Description of the issue

      Tested environment:FileMaker Server Advanced 11.0.1.99 / Mac OS X 10.5.8FileMaker Server 10.0.2.206 / Mac OS X 10.5.4Description:Contrary to the help description below, the post-processing script of a Script Sequence task is executed even when the FileMaker script returns a non-zero value.An excerpt from the help:The FileMaker script must return a value of 0 (zero) in order for the script sequence to proceed to the post-processing script (if one is specified).Steps to reproduce:Create a FM script that has only one step: Exit Script [1]Create a shell script in the FM Server's Scripts folder:#!/bin/sh
      exit 0Create a new Script Sequence task in Server Admin Console.Specify the FM script (1) as FileMaker script to execute and the shell script (2) as post-processing script.Run the schedule.Expected:Only the FileMaker script (1) is executed.Actual:Both FM script (1) and post-processing script (2) are executed.Additional information:Event.log shows the post-processing script being executed. I also tested the result with a post-processing script doing a real job to confirm it is actually executed.