RE: [PHP] Problem to display the results of an exec + rsh command

From: Date: Thu, 18 Mar 2004 16:59:02 +0000
Subject: RE: [PHP] Problem to display the results of an exec + rsh command
Groups: php.general 
Request: Send a blank email to php-general+get-180855@lists.php.net to get a copy of this message
Frédéric Martin <mailto:frederic.martin@smart-telecom.ch> on Thursday, March 18, 2004 7:31 AM said: > $res = exec("rsh x.x.x.x -l username ping x.x.x.x); > echo "<pre> $res </pre>"; > > I cannot display the result of the ping made in the remote host. > any idea to fix that? > thank you in advance for your tips ... i don't have any idea why it's not working and i've never used exec(), but maybe you'd have better luck with the back tick operator (at least i think it's an operator)? $res = rsh x.x.x.x -l username ping x.x.x.x; chris.

« previous php.general (#180855) next »