qadwjoh has asked for the wisdom of the Perl Monks concerning the following question:
I get logged in ok, but when I try to the put command I get the error :my $ftp; if ($ftp = Net::FTP->new("ftpgateway.mycompany.com", Debug => '1', Passive => '0')) { print "Connected.\n"; } else { print "Couldn't connect.\n"; exit; } if ($ftp->login("ftpgateway_username", "ftpgateway_password")) { print "Login sucessful\n"; } else { print "Login failed.\n"; exit; } if ($ftp->site("www.destination.com")) { print "opened www.destination.com.\n"; } else { print "Couldn't open destination.com.\n"; exit; } if ($ftp->quot("user destination_username destination_password")) { print "Logged into desination.com.\n"; } else { print "Couldn't log into destination.com.\n"; exit; } if ($ftp->put("file1.txt")) { print "Put file1.txt\n"; } else { print "Couldn't put file1.txt.\n"; exit; }
What's going wrong?Net:FTP=GLOB(0x819dd68)<<< ftp: setsockopt (reuse addresss) Invalid ar +gument
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: FTP behind a gateway
by Thelonius (Priest) on Nov 01, 2002 at 17:13 UTC | |
by qadwjoh (Scribe) on Nov 04, 2002 at 11:11 UTC |