waiting for long process

Get help with using the PHP Secure Communications Library.

Moderator: Nuxius

Forum rules
The purpose of this forum is to provide support for phpseclib, a pure PHP SSH / SFTP / RSA library.

Posts by new users are held in a moderation queue and are not publicly visible until the post is approved.

waiting for long process

Postby blunderbuss » Mon Apr 02, 2012 12:06 pm

Thanks for the software phpseclib0.2.2. I am able to login to remote servers and run commands successfully !
Could someone please suggest a way I can "escape" - in order to send commands without waiting for execution, similar to this:

echo $ssh->exec('login to machine1');
echo $ssh->exec('command to server 1 which could take a couple of days to finish');
echo 'One is running <br>' ;
echo $ssh->exec('login to machine2');
echo $ssh->exec('command to server 2 which could take a couple of days to finish');
echo 'Two is running <br>' ;
blunderbuss
Traveler
 
Posts: 1
Joined: Mon Apr 02, 2012 11:46 am

Re: waiting for long process

Postby TerraFrost » Tue Apr 03, 2012 5:22 am

Try $ssh->setTimeout(10) with the latest SVN version.
TerraFrost
Legendary Guard
 
Posts: 12243
Joined: Wed Dec 04, 2002 6:37 am


Return to phpseclib support

Who is online

Users browsing this forum: No registered users and 0 guests

cron