johnsned has asked for the wisdom of the Perl Monks concerning the following question:
I wrote an FTP client that transfers files from a Win2K box to an AIX box. I need to 'ASCII' mode to get rid of the CRLF right? how do I do that, what is the syntax.
Here is the portion of the code that does the FTP
$ftp = Net::FTP->new("$Server",Debug => 0);
$ftp->login("mqm","$Pwd",) || die "LOGIN FAILED";
$ftp->ascii;
$ftp->cwd("/var/mqm/mqsc/stage")|| die "CAN'T CHANGE DIR";
$ftp->put("C:\\Jobs\\staging\\$File")|| die "PUT FAILED";
$ftp->quit;
...but that doesn't seem to work. I have searched CPAN and other internet sources and not found any help, in one site it mentioned this as a "Known Bug".
Also I was wondering if it is possible to chmod the file using this FTP module?
Any help would be appreciated.
Thanks,
John
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::FTP $ftp->ascii;
by Thelonius (Priest) on Nov 14, 2003 at 20:35 UTC | |
by johnsned (Initiate) on Nov 15, 2003 at 01:55 UTC | |
|
Re: Net::FTP $ftp->ascii;
by Grygonos (Chaplain) on Nov 14, 2003 at 19:06 UTC | |
|
Re: Net::FTP $ftp->ascii;
by meetraz (Hermit) on Nov 14, 2003 at 19:29 UTC | |
by waswas-fng (Curate) on Nov 14, 2003 at 21:34 UTC | |
|
Re: Net::FTP $ftp->ascii;
by nimdokk (Vicar) on Nov 14, 2003 at 19:29 UTC |