home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!spool.mu.edu!enterpoop.mit.edu!bloom-picayune.mit.edu!news.mit.edu!jdell
- From: jdell@nefertiti.mit.edu (John Ellithorpe)
- Subject: Re: Automatic ftp session
- In-Reply-To: jbowyer@cis.vutbr.cs's message of 21 Jan 93 12:24:37 GMT
- Message-ID: <JDELL.93Jan21115730@nefertiti.mit.edu>
- Sender: news@athena.mit.edu (News system)
- Nntp-Posting-Host: nefertiti.mit.edu
- Organization: Massachusetts Institute of Technology
- References: <35150@adm.brl.mil>
- Date: Thu, 21 Jan 1993 16:57:30 GMT
- Lines: 33
-
- On 21 Jan 93 12:24:37 GMT, jbowyer@cis.vutbr.cs (Bowyer Jeff) said:
-
- > I imagine the capability exists; therefore . . .
-
- > Would someone please send me a sample shell program that ftp's to a
- > site and returns a directory listing or gets a file . . . without user
- > intervention.
-
- > Thanks for your assistance.
-
- How about this one.
-
- #!/bin/csh -f
- ftp prep.ai.mit.edu <<EOD
- anonymous
- jdell@maggie.mit.edu
- cd /pub/gnu
- ls
- quit
- EOD
-
- And just run the script and pipe the output to some file.
-
- John
-
- --
-
- ===============================================================================
- John Ellithorpe | Internet: jdell@maggie.mit.edu
- Dept. of Physics, Rm 26-349 | Phone : (617) 253-3074 Office
- Massachusetts Institute of Technology | (617) 253-3072 Lab
- Cambridge, MA 02139 | (617) 236-4910 Home
- ===============================================================================
-