note 21193 added to function.exec

From: Date: Thu, 02 May 2002 18:46:37 +0000
Subject: note 21193 added to function.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-30091@lists.php.net to get a copy of this message
Has anyone had any luck in getting exec, shell_exec, backticks, system, etc working for opening an ssh session to and running a command on a remote machine? I kepp seeing the PHP web server close the session before authentication is complete. Running the exact same command manually works just fine. Here's my command: ssh -l root myserver.mydomain.com /usr/local/pwdchange username newpassword oldpassword I can run other shell commands just fine. Thank's BEW -- http://www.php.net/manual/en/function.exec.php http://master.php.net/manage/user-notes.php?action=edit+21193 http://master.php.net/manage/user-notes.php?action=delete+21193 http://master.php.net/manage/user-notes.php?action=reject+21193

« previous php.notes (#30091) next »