[SunHELP] Script to automate ftp.

John_Kennedy sunhelp at sunhelp.org
Tue Sep 18 07:31:06 CDT 2001


You could also use Expect.  That's kind of what it's made for...
John


Swamy_CNN at satyam-infoway.com wrote:
> 
>                                               Placed At :
> 
> Hi all,
> 
>      I was trying ftp automation some time back. But in my case i wanted to
> Download the directories recursilvey. But i was unsuccesfull, wanted to know if
> any of u tried this
> 
> Regds,
> swamy c.n.n
> 
> ---------------------------
> 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
> 
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list