in reply to Net::FTP failure
Update: Just taking a wild guess here, but the 'put' command from your ftp client script maybe failing because it's running in *passive* mode, as Net::FTP seems to by default. The server probably doesn't want *passive* connections, and is only accepting *active*.
As an example to specify passive or not in your script (and use the debug option):
use Net::FTP; $ftp = Net::FTP->new('your.ftp.server', Debug => 1, Passive=>0) or die "Cannot connect to your.ftp.server: $@"; $ftp->login("user",'passwd') or die "Cannot login ", $ftp->message; $ftp->cwd('a.remote.directory') or die "Cannot change working directory ", $ftp->message; $ftp->put('./my.local.file.in.the.lcwd') or die "put failed ", $ftp->message; $ftp->quit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Net::FTP failure
by wow_za_ (Initiate) on Jul 06, 2008 at 21:46 UTC | |
by zebedee (Pilgrim) on Jul 07, 2008 at 04:12 UTC | |
by kabeldag (Hermit) on Jul 07, 2008 at 08:40 UTC | |
by zebedee (Pilgrim) on Jul 07, 2008 at 09:04 UTC | |
by kabeldag (Hermit) on Jul 07, 2008 at 15:57 UTC | |
by LesleyB (Friar) on Jul 07, 2008 at 13:02 UTC |