Linux script getting failed

Hi,

I am using below script, but it is always getting failed on linux command ps aux | awk {‘print $8’}|grep Z|wc -l &> /{parameter “Error_Folder”}/output.txt. However this command works fine and giving output in output.txt when i run this directly on linux. I need guidance on this.

action parameter query “Error_Folder” with description “Please enter the Folder Name and Path” with default value “”

delete __createfile
createfile until EOF
#!/bin/bash
ps aux | awk {‘print $8’}|grep Z|wc -l &> /{parameter “Error_Folder”}/output.txt

EOF

delete Zombie.sh
move __createfile Zombie.sh

wait /bin/sh “Zombie.sh

Try below, print is Linux attribute in your script but you have putted curly bracket in front of it due to that action script is trying to parse it as relevance.

ps aux | awk **{{‘print $8’}|**grep Z|wc -l &> /{parameter “Error_Folder”}/output.txt

4 Likes

Thanks Dear, But i am getting same failure. Any help on this?

please post your action script logs for better understanding, where actually its failing !