Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!dali.cs.montana.edu!milton!ogicse!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!cernvax!chx400!ugun2b!ugsc2a!fisher From: fisher@sc2a.unige.ch Newsgroups: comp.binaries.ibm.pc.d Subject: Re: auto anon ftp? Message-ID: <1990Dec5.114059.334@sc2a.unige.ch> Date: 5 Dec 90 09:40:59 GMT References: <1990Dec4.034528.10913@infonode.ingr.com> Organization: University of Geneva, Switzerland Lines: 27 In article <1990Dec4.034528.10913@infonode.ingr.com>, fordke@infonode.ingr.com (Keith Ford x8614) writes: > > Running on a Unix SysV box, is there a way to automate an ftp > request so it can be done automatically? Something like a > script file? I think this depends at least partially to the version of FTP you're using. I'm able to do a more or less automatical file transfer using pipes. This particular version of FTP (on SunOS 3.?, I believe) doesn't recognize the command `take' that I have on the PC, but it does have the `-i' switch ("turn off interactive prompting during multiple file transfers"). The one instance I'm thinking off was when I wanted several files from the SIMTEL20 archives. It was quite simple to edit (using `awk' at that time) an FTP script (whith the proper `cd's', `bin's', and of course the ending `bye'...) from the original list of files. Usually it's easier to do a `cd' than to have FTP's `glob' transform full path names... ..% ftp -i {server} < ftp.script One more thing: I don't know if the pipe works for username and password prompting, so check out if your version of FTP recognizes the .netrc file in your home directory. Hope this helps some Markus Fischer, Dpt. of Anthropology, Geneva CH