Re: [Ssh-sftp-perl-users] Net::SSH::Perl is hanging on long command lines
Brought to you by:
dbrobins
From: Ryan, M. G <Mar...@te...> - 2013-06-11 00:03:37
|
Le 10 juin 2013 à 12:40, James Patterson <jam...@op...> a écrit : > The problem seems to occur when the command being executed is longer > than about 22000 characters. > > I've uploaded a simplified version of the script - that only does an > echo - to pastebin: > http://pastebin.com/NtFmkvZz > Forgive me if I've got the wrong end of stick, but you look to me to be sending 50,000 periods as a command. Would you not expect that to fail? Did you mean $cmd .= "."x50000; instead of; $cmd = "."x50000; (not that I'm sure that 50,000 periods after "echo " is going to fly real well either) Regards, Martin |