monk2b has asked for the wisdom of the Perl Monks concerning the following question:
I can not seem to get this script to retrieve any files
any help would be greatly appreciated
When I do this
I do get the file at stdout. What am I doing wrong
learning monk2b
#!/usr/local/bin/perl -w use strict use Net::SFTP; my $host = "somehost"; my $password = "somepasswd"; my $user = "someuser"; my $sftp = Net::SFTP->new($host,"user" => $user,"password" => $passwor +d); $sftp->get("/var/log/httpd/access_log");
When I do this
#!/usr/local/bin/perl -w use strict use Net::SFTP; my $host = "somehost"; my $password = "somepasswd"; my $user = "someuser"; my $sftp = Net::SFTP->new($host,"user" => $user,"password" => $passwor +d); print $sftp->get("/var/log/httpd/access_log"); <<<---|||
I do get the file at stdout. What am I doing wrong
learning monk2b
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: sftp problem
by nardo (Friar) on Aug 09, 2001 at 02:23 UTC | |
by monk2b (Pilgrim) on Aug 09, 2001 at 02:36 UTC |
Back to
Seekers of Perl Wisdom