note 84407 deleted from function.system by danbrown

From: Date: Mon, 14 Jul 2008 14:13:10 +0000
Subject: note 84407 deleted from function.system by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-141487@lists.php.net to get a copy of this message
Note Submitter: zheyu dot gao at gmail dot com ---- 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 (#141487) next »