[comp.unix.questions] Using ftp non-interactively

equaad@athena.mit.edu (Ellen F Quaadgras) (11/17/89)

I am trying to find a way to invoke ftp on the command line, as in the 
following:

	ftp "somewhere" "accountname" "password" "command"

where command could be anything from "ls" to "get file".

I've tried piping the necessary information into ftp but it gets stuck
on the password. I'm working with MS-DOS on an IBM AT. If anybody has
an idea about how to do this, or knows of a program already written, I
would be thrilled to hear from you. Please email, and I can post any
results to the net later. Thank you!!!!

		--Ellen

equaad@athena.mit.edu (Ellen F Quaadgras) (11/30/89)

Thanks to all who sent mail about noninteractive use of FTP on the PC.
As it turns out, there is a "-f" option (this is NCSA FTP) which
allows you to put your commands to FTP in a file. Thanks again!
                --Ellen