home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / question / 10950 < prev    next >
Encoding:
Internet Message Format  |  1992-09-11  |  1.8 KB

  1. Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!crdgw1!rdsunx.crd.ge.com!c0223!joslin
  2. From: joslin_paul@ae.ge.com
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: Doing FTP in background ...
  5. Message-ID: <joslin.716213151@c0223.ae.ge.com>
  6. Date: 11 Sep 92 12:05:51 GMT
  7. References: <32515@adm.brl.mil> <SHUBU.92Sep10142728@green.cs.wisc.edu>
  8. Sender: usenet@crd.ge.com (Required for NNTP)
  9. Reply-To: joslin_paul@ae.ge.com
  10. Distribution: na
  11. Organization: GE Aircraft Engines
  12. Lines: 35
  13. Originator: news@c0228.ae.ge.com
  14. Nntp-Posting-Host: 129.202.2.241
  15.  
  16. shubu@cs.wisc.edu (Shubhendu Mukherjee) writes:
  17.  
  18. >>>>>> In article <32515@adm.brl.mil>, hjbortol@impa.br (Humberto Jose Bortolossi) writes:
  19.  
  20. >HJB> Is it possible to do ftp as an process running in background? I tried
  21. >HJB> to do this using a script file but I didn't get sucess. How do I supress  the
  22. >HJB> transaction ftp messages? I tried the following:
  23.  
  24. >HJB> nohup ftp xxx.xxx.xxx < ftp.commands > dev/null &
  25.  
  26. >HJB> where ftp.commands is a file with ftp commands.
  27.  
  28. >Create a .netrc file containing the following:
  29.  
  30. >machine <machine-name> login <login-name> password <password> 
  31.  
  32. >Check the man page of netrc(5) for details.
  33.  
  34. >Then you can do 
  35.  
  36. >ftp <machine-name> < ftp.commands > /dev/null &
  37.  
  38. It's not a good idea to have a plaintext password stored anywhere on a
  39. system.  While permissions on .netrc should be 600, and you may trust
  40. root, if root is compromised, the cracker now has another account on
  41. another machine to work from.  A better solution is to use "ftpget" or
  42. "xtp".  Use archie to find a source; xtp is in the ImageMagick
  43. distribution.  I prefer ftpget.  If you find a version later than Jun
  44. 1991, please send email. 
  45. -- 
  46.      Paul R. Joslin     |Dan Quayle's Top 10 TV complaints:
  47. joslin@c0223.ae.ge.com  | 10. Nobody ever "beams up" William Shatner on
  48.    +1 513 583 3537      |    Rescue 911.
  49.