note 73391 rejected from function.system by philip

From: Date: Wed, 21 Feb 2007 16:18:34 +0000
Subject: note 73391 rejected from function.system by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-123656@lists.php.net to get a copy of this message
Note Submitter: fvalpondi at salle dot url dot edu ---- 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!!

« previous php.notes (#123656) next »