in reply to Re: NET::FTP Problem
in thread NET::FTP Problem
Sorry, I am new at this:
#!/D:/perl/bin/-w # a module making life easier use Net::FTP; use strict; use warnings; require Net::FTP::A; my $file = "ftptest.txt"; my $host = "somehost.com"; my $login = "me"; my $passwd = "pass"; my $ftp = Net::FTP->new("somehost.com", Debug => 1); if ($ftp->login("me","pass")) { $ftp->cwd('OMS'); #$ftp->pasv( $ftp ); $ftp->I(); $ftp->put( $file ); } else { print " Sending file to FTP Server ... Failed!\n"; } print " Sending file to FTP Server ... "; if ($ftp->put($file)) { print "Complete!\n"; } else { print "Failed!\n"; $ftp->quit; } $ftp->quit;</P>
Edited: ~Mon Aug 19 18:16:20 2002 (GMT) by footpad: Added <CODE> and other HTML formatting tags, per Consideration.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: NET::FTP Problem
by runrig (Abbot) on Aug 19, 2002 at 19:52 UTC |