in reply to Re^2: SSH2 - Asynchronous Opens & Synchronous Commands
in thread SSH2 - Asynchronous Opens & Synchronous Commands
my %ssh; for my $host (@hosts) { $ssh{$host} = Net::OpenSSH->new($host, async => 1, ...); } for my $host (@hosts) { my $ssh = $ssh{$host}; my ($pty, $pid) = $ssh->open2pty; # whith out command launchs a shel +l my $expect = Expect->init($pty); $expect->... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: SSH2 - Asynchronous Opens & Synchronous Commands
by 5haun (Scribe) on Apr 04, 2014 at 13:50 UTC | |
by salva (Canon) on Apr 05, 2014 at 14:14 UTC | |
by 5haun (Scribe) on Apr 05, 2014 at 22:44 UTC | |
by salva (Canon) on Apr 06, 2014 at 06:43 UTC | |
by 5haun (Scribe) on Apr 06, 2014 at 15:57 UTC | |
|