Newsgroups: comp.unix.wizards
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!fitz
From: fitz@mml0.meche.rpi.edu (Brian Fitzgerald)
Subject: Re: controlling ftp process from a shell script or c program
Message-ID: <xmbhl_c@rpi.edu>
Followup-To: comp.unix.shell
Summary: try expect
Nntp-Posting-Host: mml0.meche.rpi.edu
Organization: Rensselaer Polytechnic Institute, Troy NY
References: <9105200353.AA09540@enuxha.eas.asu.edu>
Date: 20 May 91 04:16:56 GMT
Lines: 11

>I am trying to find an intelligent way to transfer files from 
>an ftp server to my account.  When I say intelligent I mean that

Try "expect".  The man page contains an example of how to do this.
Expect was written by a wizardly person in order to reduce such
problems to non-wizardly shell programming tasks. :-)

Get expect by anon ftp from durer.cme.nist.gov in /pub.  You also need
the tcl library, available from ucbvax.berkeley.edu in /pub.

Brian
