I need to execute multiple FTP commands in a single line at the FTP prompt. In Unix, this is possible by using “;” or “&” among others, but they don’t work at the FTP prompt.
For example at the prompt, I need to run “cd /some/dir/” and then “ls -l”, but on the same line, instead of different lines.
Anyone know of a way to achieve this?
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.