home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sun / misc / 5825 < prev    next >
Encoding:
Internet Message Format  |  1992-12-13  |  1.6 KB

  1. Xref: sparky comp.sys.sun.misc:5825 alt.sources:2773
  2. Newsgroups: comp.sys.sun.misc,alt.sources
  3. Path: sparky!uunet!mcsun!ieunet!tcdcs!maths.tcd.ie!tim
  4. From: tim@maths.tcd.ie (Timothy Murphy)
  5. Subject: Re: Automated FTP?
  6. Message-ID: <1992Dec14.020745.15321@maths.tcd.ie>
  7. Organization: Dept. of Maths, Trinity College, Dublin, Ireland.
  8. References: <1992Dec8.220145.5713@spang.Camosun.BC.CA> <NICKEL.92Dec9200738@desaster.cs.tu-berlin.de> <1g7shpINN9pa@atlpyr.ga.pyramid.com> <1992Dec11.194130.14879@elroy.jpl.nasa.gov>
  9. Date: Mon, 14 Dec 1992 02:07:45 GMT
  10. Lines: 37
  11.  
  12. pjs@euclid.JPL.NASA.GOV (Peter J. Scott) writes:
  13.  
  14. >In article <1992Dec8.220145.5713@spang.Camosun.BC.CA>
  15. >morley@suncad.camosun.bc.ca (Mark Morley) writes:
  16.  
  17. >> Does anyone have, or know of, a utility that allows FTP to run
  18. >> non-interactively (ie: read it's commands from a file).
  19.  
  20. >Elegant solutions that require making extra software that have appeared
  21. >here notwithstanding, it's handy to know that if you don't need 
  22. >anything more complex than just getting a particular file,
  23.  
  24. I doubt if anyone reading this group knows less about FTP than me,
  25. but I find the following very simple recipe
  26. allows me to retrieve files in the background.
  27.  
  28. First I make entries in .netrc like
  29.  
  30. machine mac.archive.umich.edu login anonymous password tim@maths.tcd.ie
  31. machine ftp.apple.com login anonymous password tim@maths.tcd.ie
  32.  
  33. Then I write a script file like
  34.  
  35. cd mac/game/arcade
  36. get bricklesplus2.0.sit.hqx
  37. get brickwell.sit.hqx
  38. quit
  39.  
  40. Then I give the command
  41.  
  42. % ftp mac.archive.umich.edu < script &
  43.  
  44. -- 
  45. Timothy Murphy  
  46. e-mail: tim@maths.tcd.ie
  47. tel: +353-1-2842366
  48. s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
  49.