I'm sort of amused at the suggestions that are coming out of this
question. The correct answer is: (drum roll please!)

expect

expect is a scripting language designed for programming interactive
responces, especially for programs that do not do IO on std{in,out}.

Ftp *does* read from stdin but your more elegant solution will be expect.

One person responded with a perl interface called ftp. Looks ok, but the
expect solution is much cleaner.

Hope this helps.

-- 
----------Time flies like the wind. Fruit flies like a banana.----------------
--------Stranger things have happened but none stranger than this.-------------
Steven W. Orr      [EMAIL PROTECTED]     <site of former bang addr:-)>
---------------"Listen to me! We are all individuals."-------------------------

On Wed, 26 Jan 2000, Jim Baxter wrote:

=>Hi
=>
=>We do not seem to be able to run ftp from a shell script or script ftp.
=>The man page talks about macros but they go away at close.
=>What we need is the ability to start ftp, login and get (or put) a list of
=>files and
=>log off all from a shell script
=>
=>Can some one tell me how to do it or where to get RPM of another version of
=>ftp that
=>will do it?
=>
=>Thanks
=>
=>
=>Jim Baxter
=>MIS
=>Morrison Supply Company
=>


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to