note 96242 added to function.ssh2-exec

From: Date: Wed, 17 Feb 2010 06:02:20 +0000
Subject: note 96242 added to function.ssh2-exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-166044@lists.php.net to get a copy of this message
tabber dot watts at gmail dot com wrote: ->02-Dec-2005 11:21 ->This is the best way I found to automatically run multiple commands or commands that might take longer then expected. NOTE: this assumes that no where in the output is there the text '[end]' otherwise the function will end prematurely. Hope this helps people. -> -><?php ->$ip = 'ip_address'; ->$user = 'username'; ->$pass = 'password'; -> ->$connection = ssh2_connection($ip); This was a great help; however, $connection = ssh2_connection($ip); should read $connection = ssh2_connect($ip); Everything worked fine with this change. ---- Server IP: 69.147.83.197 Probable Submitter: 66.45.154.90 ---- Manual Page -- http://www.php.net/manual/en/function.ssh2-exec.php Edit -- https://master.php.net/note/edit/96242 Del: integrated -- https://master.php.net/note/delete/96242/integrated Del: useless -- https://master.php.net/note/delete/96242/useless Del: bad code -- https://master.php.net/note/delete/96242/bad+code Del: spam -- https://master.php.net/note/delete/96242/spam Del: non-english -- https://master.php.net/note/delete/96242/non-english Del: in docs -- https://master.php.net/note/delete/96242/in+docs Del: other reasons-- https://master.php.net/note/delete/96242 Reject -- https://master.php.net/note/reject/96242 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#166044) next »