Newsgroups: comp.archives Path: utzoo!utgpu!news-server.csri.toronto.edu!ox.com!msen.com!emv From: fitz@mml0.meche.rpi.edu (Brian Fitzgerald) Subject: [unix-wizards] Re: controlling ftp process from a shell script or c program Message-ID: <1991May21.052459.2169@ox.com> Followup-To: comp.unix.shell Sender: emv@msen.com (Edward Vielmetti, MSEN) Reply-To: fitz@mml0.meche.rpi.edu (Brian Fitzgerald) Organization: Rensselaer Polytechnic Institute, Troy NY References: <9105200353.AA09540@enuxha.eas.asu.edu> Date: Tue, 21 May 1991 05:24:59 GMT Approved: emv@msen.com (Edward Vielmetti, MSEN) X-Original-Newsgroups: comp.unix.wizards Archive-name: unix/shell/expect/1991-05-20 Archive: durer.cme.nist.gov:/pub/expect.shar.Z [129.6.32.4] Original-posting-by: fitz@mml0.meche.rpi.edu (Brian Fitzgerald) Original-subject: Re: controlling ftp process from a shell script or c program Reposted-by: emv@msen.com (Edward Vielmetti, MSEN) >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 -- comp.archives file verification durer.cme.nist.gov -rw-rw-r-- 1 100 10 114265 May 16 19:15 /pub/expect.shar.Z found expect ok durer.cme.nist.gov:/pub/expect.shar.Z