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?
> 

The ftp in linux should do it ok.  One possible method to ftp
in a script file I haven't seen posted yet would be the following

#!/bin.sh

ftp -ivn hostname <<END
user username password
insert commands here...
..
..
..
bye
END

man ftp or ftp --help for more info on commands and switches.




-- 
Thomas K. Gamble
[EMAIL PROTECTED]


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

Reply via email to