When I execute a .sh script in actionscript or in sh script, I have the final command in the script to return an exit code. In this example, the execution of the script from bigfix cshould return an exit code of 231. However, it is returned as -25
At 15:27:02 +0000 - mailboxsite (http://xxx:52311/cgi-bin/bfgather.exe/mailboxsite3538126)
Relevant - Custom Action (fixlet:8489392)
At 15:27:03 +0000 -
ActionLogMessage: (action:8489392) Action signature verified for Execution
ActionLogMessage: (action:8489392) starting action
Report posted successfully
At 15:27:03 +0000 - actionsite (http://xxx:52311/cgi-bin/bfgather.exe/actionsite)
Script ended (exit code = -25) (fixlet 8489392)
At 15:27:03 +0000 -
ActionLogMessage: (action:8489392) ending action
The same thing happens when I use actionscript in the fixlet as opposed to sh script execution. During testing, I changed the exit code to 233 and the returned code was -23 so it seems like they are related. I’ve never seen this before, running BigFix Root 10.0.4.32 and BES client is 10.0.2.52.
Update: testing with a 10.0.2 client on Windows, actionscript exit code returns as expected:
Relevant - Custom Action (fixlet:8495673)
At 19:00:22 +0000 -
ActionLogMessage: (action:8495673) Action signature verified for Execution
ActionLogMessage: (action:8495673) starting action
At 19:00:22 +0000 - actionsite (http://xxxxx.com:52311/cgi-bin/bfgather.exe/actionsite)
Command succeeded delete No 'C:\Program Files (x86)\BigFix Enterprise\BES Client\__BESData\actionsite\__createfile' exists to delete, no failure reported (action:8495673)
Command succeeded delete No 'C:\Program Files (x86)\BigFix Enterprise\BES Client\__BESData\actionsite\test.bat' exists to delete, no failure reported (action:8495673)
Command succeeded createfile until (action:8495673)
Command started - waithidden cmd.exe /c "copy /Y __createfile test.bat" (action:8495673)
At 19:00:22 +0000 -
Report posted successfully
At 19:00:22 +0000 - actionsite (http://xxxxx.com:52311/cgi-bin/bfgather.exe/actionsite)
Command succeeded (Exit Code=0) waithidden cmd.exe /c "copy /Y __createfile test.bat" (action:8495673)
Command started - waithidden cmd.exe /c "test.bat" (action:8495673)
At 19:00:23 +0000 - actionsite (http://xxxxx.com:52311/cgi-bin/bfgather.exe/actionsite)
Command succeeded (Exit Code=231) waithidden cmd.exe /c "test.bat" (action:8495673)
At 19:00:23 +0000 -
ActionLogMessage: (action:8495673) ending action