Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
FTP プロンプトで複数の FTP コマンドを 1 行で実行する必要があります。Unix では、これは ";" を使用して可能です。または「&」などですが、FTP プロンプトでは機能しません。
たとえば、プロンプトで「cd /some/dir/」を実行してから「ls -l」を実行する必要がありますが、別の行ではなく同じ行で実行します。
これを達成する方法を知っている人はいますか?
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.