Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

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.