There's more than one way to do things | |
PerlMonks |
Re: Early termination of STDIN with combination of ssh and sleepby Crackers2 (Parson) |
on Dec 25, 2013 at 03:25 UTC ( [id://1068345]=note: print w/replies, xml ) | Need Help?? |
Does it work if you change the exec to
or
IIRC ssh may be pre-reading STDIN and then discarding the contents when it's not actually needed. Redirecting stdin for the ssh command makes sure there won't be any interference with your main program.
In Section
Seekers of Perl Wisdom
|
|