perl_help26 has asked for the wisdom of the Perl Monks concerning the following question:
Hello :)
I am trying to send a file through ftp from my machine to a virtual Xlight FTP server. The files are indeed sent to the ftp server BUT they are empty. I want to know if this something to do with the FTP code I am using:
my $ftp = Net::FTP->new($xlight_server_ip, Debug => 0) or log_error +("Cannot connect") ; $ftp->login($user,$pass) or log_error ("Cannot login ") ; $ftp->cwd($dest_dir) or log_error ("Cannot change working directory ") + ; $ftp->put($file_to_send);
Any ideas??? Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::FTP with Xlight FTP server
by marto (Cardinal) on Apr 16, 2015 at 10:56 UTC | |
|
Re: Net::FTP with Xlight FTP server
by hippo (Archbishop) on Apr 16, 2015 at 10:57 UTC | |
by perl_help26 (Beadle) on Apr 16, 2015 at 13:52 UTC | |
by GotToBTru (Prior) on Apr 16, 2015 at 14:10 UTC | |
by perl_help26 (Beadle) on Apr 17, 2015 at 12:35 UTC |