in reply to perl-expect interact command
Or you could add
while ($exp->pid()) { $exp->send("exit\n"); }
right after the $exp->interact(); to just keep sending 'exits' while the ssh connection is still open :)
while ($exp->pid()) { $exp->send("exit\n"); }
right after the $exp->interact(); to just keep sending 'exits' while the ssh connection is still open :)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: perl-expect interact command
by Frits (Novice) on Jul 02, 2012 at 11:23 UTC | |
by Neighbour (Friar) on Jul 02, 2012 at 12:58 UTC |
In Section
Seekers of Perl Wisdom