home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / shell / 5474 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  1.0 KB

  1. Path: sparky!uunet!crdgw1!rdsunx.crd.ge.com!ariel!davidsen
  2. From: davidsen@ariel.crd.GE.COM (william E Davidsen)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: >& redirects stderr AND stdout.
  5. Message-ID: <1993Jan22.231726.28857@crd.ge.com>
  6. Date: 22 Jan 93 23:17:26 GMT
  7. References: <aet.727670022@munagin>
  8. Sender: usenet@crd.ge.com (Required for NNTP)
  9. Reply-To: davidsen@crd.ge.com (bill davidsen)
  10. Organization: GE Corporate R&D Center, Schenectady NY
  11. Lines: 17
  12. Nntp-Posting-Host: ariel.crd.ge.com
  13.  
  14. In article <aet.727670022@munagin>, aet@mullian.ee.mu.OZ.AU (bert thompson) writes:
  15.  
  16. | i would like to know if there is a way to redirect ONLY stderr
  17. | rather than both stderr and stdout in csh (or in sh).
  18.  
  19. sh:    myprog 2>prog.err
  20. | one other question:
  21. | how would i write a shell script which writes some text to the
  22. | stdin of a program and then hands stdin over to the user (tty).
  23.  
  24. sh:    echo "some text" | cat - /dev/tty | other_prog
  25.  
  26. -- 
  27. bill davidsen, GE Corp. R&D Center; Box 8; Schenectady NY 12345
  28.     Keyboard controller has been disabled, press F1 to continue.
  29.