IronCore has asked for the wisdom of the Perl Monks concerning the following question:
open(FTP_WORK, ">@FTP_cmnd_file"); $oldHandle = select(FTP_WORK); print("open windows.ftp.server \n"); print("my\\userid \n"); print("password \n"); print("cd '/download' \n"); print("get '$downfile' $ftpFile \n"); print("bye \n"); close(FTP_WORK); $_ = `ftp -s:@FTP_cmnd_file > @FTP_log_file`;
I also tried this code I got from your site, It didn't work ether.
ftp> ftp> open window.ftp.server Invalid command.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: $ftp not connecting to server
by derby (Abbot) on Oct 09, 2009 at 19:17 UTC | |
by IronCore (Initiate) on Oct 09, 2009 at 21:56 UTC | |
by derby (Abbot) on Oct 10, 2009 at 02:00 UTC | |
by IronCore (Initiate) on Oct 12, 2009 at 18:12 UTC | |
by IronCore (Initiate) on Oct 12, 2009 at 16:41 UTC | |
by derby (Abbot) on Oct 12, 2009 at 16:54 UTC | |
by IronCore (Initiate) on Oct 09, 2009 at 22:14 UTC | |
|
Re: $ftp not connecting to server
by zwon (Abbot) on Oct 09, 2009 at 19:01 UTC | |
|
Re: $ftp not connecting to server
by hippsta (Acolyte) on Oct 09, 2009 at 19:03 UTC | |
|
Re: $ftp not connecting to server
by vitoco (Hermit) on Oct 09, 2009 at 19:14 UTC |