in reply to
Net::OpenSSH stdout_fh problem
You are running the remote commands in the background and not waiting for then to finish before reading the output file.
Comment on
Re: Net::OpenSSH stdout_fh problem
In Section
Seekers of Perl Wisdom