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`; #### ftp> ftp> open window.ftp.server Invalid command.