Help for this page
`/bin/sh /tmp/rockpingping.sh $nodeName > /tmp/result.txt`;
$flag = system("sudo /bin/sh /tmp/sshping.sh > /tmp/result.txt" ); + ## '>' is the redirect operator and test.sh is the shell script If ($flag == 0 ) ... { // failure case }