in reply to
Net::SSH::Perl doesn't like long commands
Have you tried to issue the command in an interactive shell? Will it also work for 20000 and fail for 50000?
What is the exact number that makes it fail? Try around 32768 which is the only power of two in the range of 20000 to 50000.
Comment on
Re: Net::SSH::Perl doesn't like long commands
Download
Code
Replies are listed 'Best First'.
Re^2: Net::SSH::Perl doesn't like long commands
by
pattyj
(Novice)
on Jun 10, 2013 at 11:40 UTC
Issuing the command in an interactive shell works fine.
The script fails when length($cmd) is > 23117.
[reply]
Re^3: Net::SSH::Perl doesn't like long commands
by
pattyj
(Novice)
on Jun 10, 2013 at 11:49 UTC
With $host as "localhost", the script works (but fails sshing to an identical machine).
[reply]
In Section
Seekers of Perl Wisdom