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
In reply to System call to ssh stalling. by yoda54
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |