note 84406 rejected from function.system by mgf

From: Date: Mon, 14 Jul 2008 12:11:19 +0000
Subject: note 84406 rejected from function.system by mgf
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-141477@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- one thing which is troubling me is some cmd does not return any output to the cmd window. for example. $cmd = 'matlab -r exit' ; $ret = system($cmd, $retval); echo count($ret); --------output result--------- $ret = ' ' $retval = 0 ----------------------------- therefor I am thinking is it good to use $retval == 0 to detect if the pervious matlab process is done. for example. if ($retval == 0){ $next_cmd = 'matlab -r exit' ; $ret = system($next_cmd, $retval); }

« previous php.notes (#141477) next »