Norberto Grassi wrote:
> I need to create a shell script in order to do ftp downloads during the
> night (using crontab).
>
> The point is:
> how can I pass all the cd's and gets to the ftp command from inside the
> script?
Redirect input. For instance, within the script you gave, simply write it
as:
ftp ftp.any.com <<!
cd 1/2/3
get filename
!
Note that you can't use 'csh' for this. (Like, why would you want to, but
that's another question...)
--
Dave Ihnat
[EMAIL PROTECTED]
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.