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