Script type: sh

(imported topic written by SystemAdmin)

I’m having problems creating custom tasks using the script type of “sh”. Has anyone out there had any luck with this?

I’m unable to get even basic actions to work. This is an example of what I’m trying to do.

#!/bin/sh
ls /etc > /tmp/BigFix-ls-output

My relevance is set to “true” so all my servers are technically able to run it. Unfortunately when I take the default action, I get the following response back: “1 targeted computers reported this action non-relevant.”

Obviously I can get the same result through a simple BigFix Action Script, but I was hoping to use “sh” script type for some more complex UNIX scripts. The same (or similar) code works fine if I change it to a BigFix Action Script type.

wait ls /etc > /tmp/BigFix-ls-output

Any ideas?

(imported comment written by BenKus)

Hi tryan,

There was a console issue with non-bigfix action script types that was fixed in BES 6.0.12.5. Can you try the new version and see if it works?

http://support.bigfix.com/bes/changes/fullchangelist-6.0.txt

Ben

(imported comment written by SystemAdmin)

That did it! Thanks!

-Tim