Keep It Simple, Stupid | |
PerlMonks |
SFTP perl scriptby Anonymous Monk |
on Apr 28, 2008 at 13:20 UTC ( [id://683289]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I am relatively new to perl and I am attempting to get a script working that uses SFTP. The script I am using is: When I run this script, it only works intermittently, i.e. sometimes it works fine, but more often then not, I get the folllowing error: I have the core file that is dumped if you require it. I did try to upgrade the version of perl, and related libraries, and it doesnt seem to make a difference. I did come across something strange though (as an aside). Before I upgraded, the perl version was: I then upgraded to: This didnt fix my SFT problem above, but another thing I saw was that the perl version is the latest when I run "perl -v" as user root (which is the user that installs the various perl libraries), but it is still the older version when I run "perl -v" as another user. This particular user is the user that owns and runs the sftp script above. Any ideas what is happening? If you need any more info off me, just let me know. Thanks. Update: Hi Guys,Just to let you know your comments were very helpful. I am now using Net::SFTP::Foreign and it is working very well. I too had problems with libssh2, so I didnt persue the Net::SSH2 option. I have alos got my PATH Environment Variables sorted out now, so all users using latest version of perl. Thanks again for the help.
Back to
Seekers of Perl Wisdom
|
|