KaZeR has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I have a perl script which copy files via scp (and open3) from one server to another. After copying, some tasks have to be run remotely (by the sending server): it could be untarring an archive, or moving the file to another place.
Overall, it works nicely. But when i transfer a file greater than a given size (somewhere around 30M it seems) then the file transfer works correctly, but the following tasks (launched by another call to open3) doesn't catch an EOF on STDOUT.
Related code :
With smaller files, the script will go further.my $pidscp = open3(*HIS_IN, *HIS_OUT, *HIS_ERR, $configTransferBin, +@args); my @outlines = <HIS_OUT>;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: IPC::Open3 STDOUT does not EOF?
by ikegami (Patriarch) on Jul 11, 2010 at 18:45 UTC | |
|
Re: IPC::Open3 STDOUT does not EOF?
by ww (Archbishop) on Jul 11, 2010 at 17:55 UTC | |
|
Re: IPC::Open3 STDOUT does not EOF?
by Khen1950fx (Canon) on Jul 11, 2010 at 22:41 UTC | |
by ikegami (Patriarch) on Jul 11, 2010 at 23:59 UTC | |
by Khen1950fx (Canon) on Jul 12, 2010 at 00:12 UTC |