DV has asked for the wisdom of the Perl Monks concerning the following question:
i need to copy to a directory in under lps.use Net::FTP; $ftp = Net::FTP->new("6.1.4.9", Debug => 0) or die "Cannot connect to 6.1.4.9: $@"; $ftp->login("login",'pwd') or die "Cannot login ", $ftp->message; $remote = "lps"; print $ftp->pwd (); $ftp->cwd($remote) or die "Cannot change working directory ", $ftp->message; $ftp->put("*.log") or die "put failed ", $ftp->message; $ftp->quit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: An FTP question
by roboticus (Chancellor) on Apr 20, 2007 at 11:08 UTC | |
by cdarke (Prior) on Apr 20, 2007 at 11:46 UTC | |
by naikonta (Curate) on Apr 20, 2007 at 12:01 UTC | |
|
Re: An FTP question
by naikonta (Curate) on Apr 20, 2007 at 10:49 UTC | |
|
Re: An FTP question
by Krambambuli (Curate) on Apr 20, 2007 at 10:52 UTC | |
by Anonymous Monk on Apr 20, 2007 at 11:33 UTC |