[PHP-DEV] system() doesn't work well From: ashou han (a_shou <email protected>)
Date: 08/16/99

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  <email protected> address at http://mail.yahoo.com

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>