I used to use the following script to do that:
---------------------------------------
#!/bin/sh
{
echo "bin" ;
echo "prompt" ;
echo "cd pub/" ;
echo "get thefile" ;
echo "bye";
} | ftp ftp.somewhere.com
--------------------------------------
Nico
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.
>
>
--------------------------------------------------------
"It has been said that there are only two businesses
refer to customers as users: illegal drug trade and
the computer industry."
--------------------------------------------------------
Nico De Ranter
Sony Service Center (SUPC-E/DME-B)
Sint Stevens Woluwestraat 55 (Rue de Woluwe-Saint-Etienne)
1130 Brussel (Bruxelles), Belgium, Europe, Earth
Telephone: +32 2 724 86 41 Telefax: +32 2 726 26 86
e-mail: [EMAIL PROTECTED]
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.