Frederick Heckel on 9 Mar 2004 03:35:03 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Script FTP session?


On Sun, Mar 07, 2004 at 01:03:20AM -0500, Martin DiViaio wrote:
> 
> [...]
> 
> On the 7th day of March in the year 2004 you wrote:
> 
> > Date: Sun, 7 Mar 2004 00:41:31 -0500
> > From: kaze <kaze@voicenet.com>
> > To: PLUG Listserv <plug@lists.phillylinux.org>
> > X-Spam-Status: No, hits=-4.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_SORBS 
> > 	autolearn=no version=2.63
> > Subject: [PLUG] Script FTP session?
> > 
> > Sorry if this one is to easy, but can I control a (non-GUI / CLI) FTP
> > session from a shell script? Like send username, password, cd, put, get, and
> > then bye? Going farther how might I insert from the script timed pauses
> > between commands, like to wait five minute between the put and then next
> > command.
> > 
> 
> Look at the expect(1) and autoexpect(1) man pages.

I'd recommend checking out lftp as the client; i've used it with bourne 
shell in the past to automate transfers on solaris boxen. It's quite good 
at this stuff(and is generally a fantastic cli ftp client).

(fwph)

--
Frederick Heckel
<fwph@sccs.swarthmore.edu>
GPG key: http://www.sccs.swarthmore.edu/~fwph/pubkey.txt

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug