home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.admin
- Path: sparky!uunet!darwin.sura.net!mips!mips!decwrl!csus.edu!beach.csulb.edu!kumeda
- From: kumeda@beach.csulb.edu (ANDY KUMEDA)
- Subject: Re: anonymous ftp script..
- Message-ID: <1992Jul22.150411.3206@beach.csulb.edu>
- Organization: Cal State Long Beach
- References: <1992Jul21.161626@ece.arizona.edu>
- Distribution: world,local
- Date: Wed, 22 Jul 1992 15:04:11 GMT
- Lines: 26
-
- In article <1992Jul21.161626@ece.arizona.edu> mshah@ece.arizona.edu (Munil A. Shah) writes:
- >
- > I want to transfer many files by anonymous ftp. And I want to do
- >it during the night by running a script. I am really poor with writing
- >a script. How can I specify ftp commands(login name,password,get,etc..)
- >in the script so that they should go run on ftp prompt and not on the shell
- >prompt.?
- >
- >Munil.
-
- To ftp a file call XNeXT.tar.Z from prep.ai.mit.edu, and record events
- in ftp-log, do the following:
-
- #!/bin/sh
- ftp -n prep.ai.mit.edu<< EOF_FTP 2>&1 > ftp-log
- verbose
- bin
- user ftp kumeda@beach.csulb.edu
- cd /pub/XNeXT
- get XNeXT.tar.Z
- bye
- EOF_FTP
-
- --
- new .sig under construction
-
-