Problem to display the results of an exec + rsh command

From: Date: Thu, 18 Mar 2004 15:31:19 +0000
Subject: Problem to display the results of an exec + rsh command
Groups: php.general 
Request: Send a blank email to php-general+get-180839@lists.php.net to get a copy of this message
Hi everybody, I'm trying to execute some commands in a remote host (a cisco router) using rsh connection and I've problems for displaying the results. For example if I do this: $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 ... fred Frédéric MARTIN Stagaire Service Exploitation Email: frederic.martin@smart-telecom.ch ------------------------------------------------- VTX Services SA Avenue de Lavaux, 101 CH-1009 PULLY http://www.vtx.ch -------------------------------------------------

« previous php.general (#180839) next »