Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the linux equivalent of -s windows ftp option that specifies a file that contains ftp commands:

>ftp -s:C:\ftp-commands.src
share|improve this question
up vote 0 down vote accepted

I suppose the easiest way should be doing something like this:

ftp < command_file.src

There isn't any parameter for doing that in linux ftp, but that way you can redirect the content of the file to the command, so the result is the same in essence.

share|improve this answer

You might also look into cygwin & simply run the linux command the same way that you're accustomed to

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.