Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!snorkelwacker!tut.cis.ohio-state.edu!rutgers!njin!princeton!kb2ear!overlf!emanuele From: emanuele@overlf.UUCP (Mark A. Emanuele) Newsgroups: comp.unix.shell Subject: Re: How to pipe stderr to a command in Bourne or Korn shell Message-ID: <1813@overlf.UUCP> Date: 13 Oct 90 21:02:49 GMT References: <1990Oct8.165133.17187@cti-software.nl> Organization: Overleaf, Inc. Lines: 26 In article <1990Oct8.165133.17187@cti-software.nl>, pim@cti-software.nl (Pim Zandbergen) writes: > > How can one redirect stderr to a command while leaving stdout unaffected ? I'm not 100% sure but logically this should work. command1 2>tempfile & tail -f tempfile | command2 the only problem I think would be that the tail -f would never end. another solution: again I'm not sure but here goes: command1 2|command2 I have not tried either of these . let me know if they work. -- Mark A. Emanuele V.P. Engineering Overleaf, Inc. 500 Route 10 Ledgewood, NJ 07852-9639 attmail!overlf!emanuele (201) 927-3785 Voice (201) 927-5781 fax emanuele@overlf.UUCP