0

FTP プロンプトで複数の FTP コマンドを 1 行で実行する必要があります。Unix では、これは ";" を使用して可能です。または「&」などですが、FTP プロンプトでは機能しません。

たとえば、プロンプトで「cd /some/dir/」を実行してから「ls -l」を実行する必要がありますが、別の行ではなく同じ行で実行します。

これを達成する方法を知っている人はいますか?

4

3 に答える 3

0

You are not sending commands to shell but to the FTP server, so unix approach won't work. And FTP servers are not designed to receive multiple commands in one line: protocol specification requires sending a command and ending it with EOL.

于 2013-01-25T08:49:03.253 に答える