A delete statement by itself also fails, whether or not the file and its directory exist, and fails even when the directory is world writeable, or when I use my own home directory (which I make world writable).
Every single script fails, except the empty script.
And there’s no debugger to run on the unix targets.
I’m not sure what the problem is here. There are no clues except that a simple file creation doesn’t work.
It dawned on me that I can go to the log files on the client and maybe see what is going on. It looks like the cause might be a versioning issue: “GatherActionMV command received. Version difference, gathering action site.”
I should probably use BigFix console to push a version update to the client?
At 16:34:45 -0500 -
GatherActionMV command received. Version difference, gathering action site.
Just to take a stab at my own question here. I think this is what happens when you try to use production unix clients with a trial server. The problem is that there is no other option. You cannot push clients out to unix boxes (that I know of) and there is no separate client installation for a trial version unix CLIENTs. For organizations with a completely separated dev environment, there is no option for developing and testing fixlet content for unix platforms outside of production.
//Actions de Instalación de Unix
delete __createfile
delete "/var/opt/BESClient/__BESData/actionsite/myscript.sh"
createfile until _EOF
#!/bin/bash
Resultado=rpm -qa |grep "java-1.6.0-openjdk-1.6.0.0-1.45.1.11.1.el6.x86_64"
if [ -z “$Resultado” ]
then
exit 0
else
echo "rpm -e java-1.6.0-openjdk-1.6.0.0-1.45.1.11.1.el6.x86_64"
fi
Resultado1=rpm -qa |grep "java-1.6.0-openjdk-1.6.0.0-1.45.1.11.1.el6.x86_64"
if [ -z “$Resultado1” ]
then
exit 0
else
exit 123
fi
_EOF
move __createfile /var/opt/BESClient/__BESData/actionsite/myscript.sh
//Si necesitamos permisos en el script
wait chmod 777 “/var/opt/BESClient/__BESData/actionsite/myscript.sh”
//Si queremos ejecutarlo con sh y no con bash, si no solo wait myscript.sh
wait /var/opt/BESClient/__BESData/actionsite/myscript.sh