[Ssh-sftp-perl-users] Net::SFTP::Foreign; results
Brought to you by:
dbrobins
From: Arifuddin, A. <Ari...@xe...> - 2009-10-30 00:44:16
|
Help: i have the following script running but i get the results as such? #!/usr/bin/perl use lib '../modules'; use strict; use Net::SFTP::Foreign; $|=1; print "Connecting..."; my $sftp = Net::SFTP::Foreign->new('ipaddress', user=>'xyz', password=>'123'); if (not $sftp) { die("Error: No Connection:$@"); } elsif ($sftp->error) { die("Connect Failed : ".$sftp->status); } else { print "Connected!\n"; if (!$sftp->rget("/from*", "/to")) { print "Failed to Transfer: ".$sftp->error; } else { print "Transfer Done!!"; } print "\nFinished\n"; end of script: Why am i getting the following result....if someone can help? Connecting...Connected! Failed to Transfer: Couldn't stat remote file (lstat): No such file regards, Ari...@Xe... |