system() doesn't work well

From: Date: Mon, 16 Aug 1999 16:24:32 +0000
Subject: system() doesn't work well
Groups: php.dev 
Request: Send a blank email to php-dev+get-9886@lists.php.net to get a copy of this message
Hi there, When I was calling the System() function in my script program under Linux web server, I got nothing printed out, but the return-value is 1. Here is my code: <?php if($function == "func1") { echo "Some is: "; System("rsh -l user machinename /home/user/bin/someof " . $some, $returnvalue); print ("return= $returnvalue\n"); ?> //On the screen: //Some is: return= 1 //(the return value=1 seems the command runs well, why there is nothing printed out? _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

« previous php.dev (#9886) next »