Help for this page

Select Code to Download


  1. or download this
    `/bin/sh /tmp/rockpingping.sh $nodeName > /tmp/result.txt`;
    
  2. or download this
    $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
    }