I’m trying to execute a shell script via BigFix, but it’s failing continuously. I’ve tried multiple approaches, directly running the script through BigFix, creating a “.sh” file and executing it, and prefetched the script file before execution, tried with root user, and switch user as werll. However, none of these methods have worked.
Command–free | grep Mem | awk ‘{print $4/$2 * 100.0}’
Maybe the open { as they are used in action scripts… try to replace them with {{
If I recall correctly, there is non need to “escape” the closing ones.
In addition, I noticed that the second command is missing the required double quotes around the full shell expression. Please see the corrected version below and give it a try, it should work as expected.