farfabet has asked for the wisdom of the Perl Monks concerning the following question:
Using Net::OpenSSH, I'm runing a pipe_out tail -f to search a success/error info in a logfile while a bg command is executing.
When I try to close $stdout redir the script is suspended until I manually kill tail -f command. I tried using the pid returned by pipe_out to kill the command but it's not tail's pid but ssh connection...
Is there anyway to achieve what I'm trying with Net::OpenSSH ?
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::OpenSSH and tail -f
by salva (Canon) on Feb 27, 2012 at 12:14 UTC | |
by farfabet (Initiate) on Feb 27, 2012 at 13:51 UTC | |
|
Re: Net::OpenSSH and tail -f
by webmind (Acolyte) on Feb 27, 2012 at 11:31 UTC |