home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / admin / 4262 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1.1 KB  |  38 lines

  1. Newsgroups: comp.unix.admin
  2. Path: sparky!uunet!darwin.sura.net!mips!mips!decwrl!csus.edu!beach.csulb.edu!kumeda
  3. From: kumeda@beach.csulb.edu (ANDY KUMEDA)
  4. Subject: Re: anonymous ftp script..
  5. Message-ID: <1992Jul22.150411.3206@beach.csulb.edu>
  6. Organization: Cal State Long Beach
  7. References: <1992Jul21.161626@ece.arizona.edu>
  8. Distribution: world,local
  9. Date: Wed, 22 Jul 1992 15:04:11 GMT
  10. Lines: 26
  11.  
  12. In article <1992Jul21.161626@ece.arizona.edu> mshah@ece.arizona.edu (Munil A. Shah) writes:
  13. >
  14. >    I want to transfer many files by anonymous ftp. And I want to do
  15. >it during the night by running a script. I am really poor with writing
  16. >a script. How can I specify ftp commands(login name,password,get,etc..)
  17. >in the script so that they should go run on ftp prompt and not on the shell
  18. >prompt.?
  19. >
  20. >Munil.
  21.  
  22. To ftp a file call XNeXT.tar.Z from prep.ai.mit.edu, and record events
  23. in ftp-log, do the following:
  24.  
  25. #!/bin/sh
  26. ftp -n prep.ai.mit.edu<< EOF_FTP 2>&1 > ftp-log
  27. verbose
  28. bin
  29. user ftp kumeda@beach.csulb.edu
  30. cd /pub/XNeXT
  31. get XNeXT.tar.Z
  32. bye
  33. EOF_FTP
  34.  
  35. -- 
  36. new .sig under construction
  37.  
  38.