note 73391 added to function.system

From: Date: Wed, 21 Feb 2007 10:45:13 +0000
Subject: note 73391 added to function.system
Groups: php.notes 
Request: Send a blank email to php-notes+get-123630@lists.php.net to get a copy of this message
Hi!, I am trying to do a remote execution using the "system" funcion. My target is to be able of doing a Ping from a remote machine. The to be executed command is the following: " ssh -i /var/www/.ssh/id_dsa user@src_host 'ping -c4 -w4 dst_host > /dev/null' ; echo $? " The answer I should get is 0, 1 or 2 depending on the result of the ping. I can execute this command from the command line (all the issues with criptography work ok!), but when I try to execute it via PHP it does not accept it...... I really do not know what can it be. Anyone had the same problem? Thanks!! ---- Server IP: 217.160.72.57 Probable Submitter: 141.52.232.84 (proxied: 141.52.6.38) ---- Manual Page -- http://www.php.net/manual/en/function.system.php Edit -- https://master.php.net/note/edit/73391 Del: integrated -- https://master.php.net/note/delete/73391/integrated Del: useless -- https://master.php.net/note/delete/73391/useless Del: bad code -- https://master.php.net/note/delete/73391/bad+code Del: spam -- https://master.php.net/note/delete/73391/spam Del: non-english -- https://master.php.net/note/delete/73391/non-english Del: in docs -- https://master.php.net/note/delete/73391/in+docs Del: other reasons-- https://master.php.net/note/delete/73391 Reject -- https://master.php.net/note/reject/73391 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#123630) next »