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

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewse!cbnewsd!att-out!rutgers!uwvax!cs.wisc.edu!shubu
  2. From: shubu@cs.wisc.edu (Shubhendu Mukherjee)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: Doing FTP in background ...
  5. Message-ID: <SHUBU.92Sep10142728@green.cs.wisc.edu>
  6. Date: 10 Sep 92 20:27:28 GMT
  7. References: <32515@adm.brl.mil>
  8. Sender: news@cs.wisc.edu (The News)
  9. Organization: Univ. of Wisconsin @ Madison, CS Dept.
  10. Lines: 28
  11. In-Reply-To: hjbortol@impa.br's message of 10 Sep 92 15:52:12 GMT
  12.  
  13. >>>>> In article <32515@adm.brl.mil>, hjbortol@impa.br (Humberto Jose Bortolossi) writes:
  14.  
  15. HJB> Is it possible to do ftp as an process running in background? I tried
  16. HJB> to do this using a script file but I didn't get sucess. How do I supress  the
  17. HJB> transaction ftp messages? I tried the following:
  18.  
  19. HJB> nohup ftp xxx.xxx.xxx < ftp.commands > dev/null &
  20.  
  21. HJB> where ftp.commands is a file with ftp commands.
  22.  
  23. Create a .netrc file containing the following:
  24.  
  25. machine <machine-name> login <login-name> password <password> 
  26.  
  27. Check the man page of netrc(5) for details.
  28.  
  29. Then you can do 
  30.  
  31. ftp <machine-name> < ftp.commands > /dev/null &
  32.  
  33.  
  34. Luck!
  35. -Shubu
  36. --
  37. -------------------------------------------------------------------------
  38. Shubhendu Sekhar Mukherjee       University of Wisconsin @ Madison, C.Sc.
  39. Net:shubu@cs.{wisc,utexas}.edu   [W]:(608) 262-1012   [H]:(608) 255-6322
  40. -------------------------------------------------------------------------   
  41.