Gossamer Forum
Home : General : Perl Programming :

howto change remote directory using NET::FTP module ?

Quote Reply
howto change remote directory using NET::FTP module ?
hi

howto change remote directory using NET::FTP module ?

with:

$ftp->cd ("/FTP/IN") ;

wont work.

my $ftp = Net::FTP->new ($server, Timeout => 9000, Debug => 3);
$ftp or die "$server: cannot connect: $@";
# If you don't use ~/.netrc
$ftp->login ($user,$password) or
die "$_: Could not login: " . $ftp->message;

# change remote directory

$ftp->cd ("/FTP/IN") ;

regards
ccc

Last edited by:

ccc: Feb 26, 2004, 10:40 AM
Quote Reply
Re: [ccc] howto change remote directory using NET::FTP module ? In reply to
use:

$ftp->cwd("ftp/in");

or

$ftp->cwd("FTP/IN");
Quote Reply
Re: [Watts] howto change remote directory using NET::FTP module ? In reply to
thanks !