footbinc has asked for the wisdom of the Perl Monks concerning the following question:
Im having a small problem with Net:FTP
This keeps returing a error, Bad Remote File Name <name of file>. Any ideas?my $ftp=Net::FTP -> new($hostname) or die ("Connect failed"); my $filename=$wrname; print "Connected to Website\n"; $ftp->login($user,$password) or die ("cant Login"); $ftp->binary or die ("cant Binary"); $ftp->hash or die ("cant Hash"); $ftp->cwd("public_html") or die ("cant Change Dir"); $ftp->cwd("jobs") or die ("cant Change Dir2"); $ftp->put($filename) or die ("cant Upload"); print "File Uploaded"; $ftp->quit;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Net::FTP
by mikeB (Friar) on Jul 13, 2001 at 22:02 UTC | |
Re: Net::FTP
by footbinc (Initiate) on Jul 13, 2001 at 22:16 UTC | |
by Anonymous Monk on Jul 14, 2001 at 00:50 UTC | |
Re: Net::FTP
by princepawn (Parson) on Jul 13, 2001 at 22:04 UTC | |
Re: Net::FTP
by RhetTbull (Curate) on Jul 16, 2001 at 09:54 UTC |
Back to
Seekers of Perl Wisdom