私はあなたのFTPコマンドのスクリプトを作成し、ビルトインftp
クライアントにそれらをパイプをお勧めします。ここに私のマシン上で働いていた例(ごGET/DEL
コマンドでtest.ftpscript
にls
コマンドを置き換え)です:
[[email protected] ~] cat > test.ftpscript user anonymous [email protected] ls bye [[email protected] ~] ftp -inv ftp.swfwmd.state.fl.us < test.ftpscript Connected to ftp.swfwmd.state.fl.us (204.76.241.31). 220 331 Please specify the password. 230 Login successful. 227 Entering Passive Mode (204,76,241,31,191,167). 150 Here comes the directory listing. -rw-r--r-- 1 0 0 7478 Dec 05 09:59 README.txt drwx------ 2 0 0 16384 Dec 04 13:40 lost+found drwxr-xr-x 20 0 0 4096 Dec 18 14:42 pub lrwxrwxrwx 1 0 0 3 Dec 05 10:07 public -> pub drwxr-xr-x 3 0 0 4096 Dec 04 15:26 pvt 226 Directory send OK. 221 Goodbye. [[email protected] ~]
コマンドをダウンロード?:それをこの方法で行う;コマンド –
を削除「それは、単一のコマンドラインで可能性があります? ' –
確かに試してみてください:) –