Perry Blalock wrote:
>
> Hello Thomas,
>
> Saturday, January 29, 2000, 2:45:00 PM, you wrote:
>
> TKG> 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?
> >>
>
> TKG> The ftp in linux should do it ok. One possible method to ftp
> TKG> in a script file I haven't seen posted yet would be the following
>
> TKG> #!/bin.sh
>
> TKG> ftp -ivn hostname <<END
> TKG> user username password
> TKG> insert commands here...
> TKG> ..
> TKG> ..
> TKG> ..
> TKG> bye
> TKG> END
>
> TKG> man ftp or ftp --help for more info on commands and switches.
>
> Try using Expect.
>
Also the ncftp package allows the execution of ftp from a script.
Best
Cokey
--
------------------------------------------------------------------
Cokey de Percin, DBA Email:
Policy Management Systems Corp. Work - [EMAIL PROTECTED]
Columbia, South Carolina Home - [EMAIL PROTECTED]
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.