home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / question / 15161 < prev    next >
Encoding:
Text File  |  1993-01-04  |  821 b   |  26 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!asuvax!elam.mdl.sandia.gov!cs.sandia.gov!jhgreen
  3. From: jhgreen@cs.sandia.gov (Jethro H. Greene)
  4. Subject: Directing error while using nohup
  5. Message-ID: <1992Dec31.180509.8613@cs.sandia.gov>
  6. Followup-To: comp.unix.questions
  7. Originator: jhgreen@cs.sandia.gov
  8. Sender: jhgreen@cs.sandia.gov
  9. Organization: Sandia National Laboratories, Albuquerque, NM
  10. Date: Thu, 31 Dec 92 18:05:09 GMT
  11. Lines: 13
  12.  
  13. Why do these commands have different results?
  14.  
  15.     head /etc/passwd /etc/foo.bar > 1.out 2> 2.out
  16.  
  17.     nohup head /etc/passwd /etc/foo.bar > 1.out 2> 2.out
  18.  
  19. The second puts the standard error in file 1.out and leaves 2.out empty.
  20.  
  21. Why?  What can I do to get the output I expect?
  22.  
  23.  
  24. Thanks in advance.
  25.  
  26.