does very crude pipe checking. you need ' | ' for it to work
ie $program = CommonFunctions::executeProgram('netstat', '-anp | grep LIST');
NOT $program = CommonFunctions::executeProgram('netstat', '-anp|grep LIST');
public static executeProgram ( string $strProgramname, string $strArgs, &$strBuffer, boolean $booErrorRep = true ) : boolean | ||
$strProgramname | string | name of the program |
$strArgs | string | arguments to the program |
$booErrorRep | boolean | en- or disables the reporting of errors which should be logged |
Результат | boolean | command successfull or not |