[SunHELP] Script to automate ftp.

Kevin Reichhart sunhelp at sunhelp.org
Tue Sep 18 07:54:48 CDT 2001


try ncftp (www.ncftp.com)

-----Original Message-----
From: John_Kennedy [mailto:jckennedy at agere.com]
Sent: Tuesday, September 18, 2001 8:31 AM
To: sunhelp at sunhelp.org
Subject: Re: [SunHELP] Script to automate ftp.


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
_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list