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

  1. Xref: sparky comp.sys.sun.misc:5808 alt.sources:2757
  2. Path: sparky!uunet!ogicse!emory!swrinde!elroy.jpl.nasa.gov!euclid.JPL.NASA.GOV!pjs
  3. From: pjs@euclid.JPL.NASA.GOV (Peter J. Scott)
  4. Newsgroups: comp.sys.sun.misc,alt.sources
  5. Subject: Re: Automated FTP?
  6. Message-ID: <1992Dec11.194130.14879@elroy.jpl.nasa.gov>
  7. Date: 11 Dec 92 19:41:30 GMT
  8. Article-I.D.: elroy.1992Dec11.194130.14879
  9. References: <1992Dec8.220145.5713@spang.Camosun.BC.CA> <NICKEL.92Dec9200738@desaster.cs.tu-berlin.de> <1g7shpINN9pa@atlpyr.ga.pyramid.com>
  10. Sender: news@elroy.jpl.nasa.gov (Usenet)
  11. Reply-To: pjs@euclid.jpl.nasa.gov
  12. Organization: Jet Propulsion Laboratory, NASA/Caltech
  13. Lines: 26
  14. Nntp-Posting-Host: euclid.jpl.nasa.gov
  15.  
  16. In article <1992Dec8.220145.5713@spang.Camosun.BC.CA>
  17. morley@suncad.camosun.bc.ca (Mark Morley) writes:
  18.  
  19. > Does anyone have, or know of, a utility that allows FTP to run
  20. > non-interactively (ie: read it's commands from a file).  I'd like to be
  21. > able to use 'at' to queue up an FTP transfer to happen after normal work
  22. > hours.  Simply placing FTP commands in a file and redirecting the file
  23. > into the FTP program doesn't work (at least I haven't had any success so
  24. > far).
  25.  
  26. Elegant solutions that require making extra software that have appeared
  27. here notwithstanding, it's handy to know that if you don't need 
  28. anything more complex than just getting a particular file,
  29.  
  30. echo "open $REMOTEHOST\
  31. user $ACCT $PASS\
  32. binary\
  33. cd $REMOTEDIR\
  34. get $REMOTEFILE $LOCALFILE\
  35. quit" | $FTPCOMMAND
  36.  
  37. will work just fine.
  38.  
  39. -- 
  40. This is news.  This is your       |    Peter Scott, NASA/JPL/Caltech
  41. brain on news.  Any questions?    |    (pjs@euclid.jpl.nasa.gov)
  42.