(imported topic written by SystemAdmin)
In the following fixlet code, a parameter is set and then used to do a mkdir, then checked, but fails relevance.
The directory /tmp/tsm_install does exist on the system, so I can’t figure out why this does not work
// Setup parameters
parameter “SOURCEDIR” = “/tmp/tsm_install/”
if { not exist folder (parameter “SOURCEDIR”) }
wait sh -c “mkdir {parameter “SOURCEDIR”}”
endif
continue if {exist folder “parameter “SOURCEDIR””}
When run, the directory /tmp/tsm_install does get created, but the continue if fails as seen below from the log
Command succeeded parameter “SOURCEDIR” = “/tmp/tsm_install/” (fixlet 1536)
Command succeeded (Exit Code=0) wait sh -c “mkdir /tmp/tsm_install/” (fixlet 1536)
Command failed (Relevance substitution failed) continue if {exist folder “(parameter “SOURCEDIR”)”} (fixlet 1536)
If I eliminate the continue if above knowing that the /tmp/tsm_install directory is present, this net command fails as well. It’s like bigfix does not evaluate the parameter SOURCEDIR as /tmp/tsm_install properly
// Linux (OEL, Redhat and SuSE)
if {exist (operating system) whose (it as string as lowercase contains “linux”)}
download http://cbclnxadmin/ks/linux/tsm/5.5.0.6-TIV-TSMBAC-LinuxX86.tar
wait sh -c “cd {parameter “SOURCEDIR”}; tar __Download/5.5.0.6-TIV-TSMBAC-LinuxX86.tar”
endif