From within an action script of a fixlet, I run a perl script that creates a file /opt/sni/unix/etc/tsmserver with a single value of “TSMPRD0X” where X could be a number from 1 to 3
The file initially does NOT exist.
In the “show action info” of the fixlet reporting
wait sh -c “perl /opt/sni/unix/tools/tsmserver_lookup”
continue if {exist file “/opt/sni/unix/etc/tsmserver”}
Failed parameter “TSMSERVER” = “{line 1 of file “/opt/sni/unix/etc/tsmserver”}”
In the log for the log for the endpoint I get the following:
Operating system is AIX, but fixlet will be used for AIX, Solaris, OEL, RHEL and SuSE
The command works fine in qna
The other thing I believe is happening here is that bigfix evaluates the action script before running it and since the file /opt/sni/unix/etc/tsmserver does not exist until the perl script creates it, before the “continue if…” command, the relevance fails… I cannot proceed if that file does not exist