Take the 2-minute tour ×

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

2 Answers 2

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


