yoda54 has asked for the wisdom of the Perl Monks concerning the following question:
Greetings,
I'm creating a ssh wrapper but my while loop doesn't exit immediately. Is it possible to change this behavior?
Thanks
while() { print "enter cmd: "; chomp(my $c=<STDIN>); if ($c eq "") { # only exits after two enters??? last; } else { system("ssh somebox \"$c\""); } } #back to some other stuff
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: System call to ssh stalling.
by JavaFan (Canon) on Jan 15, 2012 at 16:04 UTC | |
|
Re: System call to ssh stalling.
by Khen1950fx (Canon) on Jan 15, 2012 at 14:53 UTC | |
|
Re: System call to ssh stalling.
by Marshall (Canon) on Jan 16, 2012 at 00:48 UTC | |
by yoda54 (Monk) on Jan 21, 2012 at 04:03 UTC |