[SunHELP] Script to automate ftp.
Elly Wijaya
sunhelp at sunhelp.org
Sat Sep 15 17:59:46 CDT 2001
Andrew,
You can write a script, then schedule the script using cron.
Below is the sample script:
cd <destination dir>
ftp -n -v > ftp.log << EOF
open <host name or ip-address>
user username password
cd <source dir>
bin (if you are trying to get binary files)
get <filename>
quit
EOF
----- Original Message -----
From: Meng, Andrew <Andrew.Meng at capitalone.com>
To: <sunhelp at sunhelp.org>
Sent: Friday, September 14, 2001 1:00 PM
Subject: [SunHELP] Script to automate ftp.
> Hello,
>
> Does anyone want to share some idea about how to automate a ftp session?
> Thanks!
>
> Andrew
>
> **************************************************************************
> The Information transmitted herewith is sensitive information intended
only
> for use to the individual or entity to which it is addressed. If the
reader
> of this message is not the intended recipient, you are hereby notified
that
> any review, retransmission, dissemination, distribution, copying or other
> use of, or taking of any action in reliance upon, this information is
> strictly prohibited. If you have received this communication in error,
> please contact the sender and delete the material from your computer.
> _______________________________________________
> SunHELP maillist - SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
More information about the SunHELP
mailing list