Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!lll-winken!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: how to read stdout AND stderr from a program Message-ID: <7235@jpl-devvax.JPL.NASA.GOV> Date: 2 Mar 90 01:21:05 GMT References: <7001@pitt.UUCP> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 13 In article <7001@pitt.UUCP> al@ee.pitt.edu (Alan Martello) writes: : Related to my previous posting concerning dumps, I want : to do open(FH, "program |&") --- but this doesn't work. : Is there an easy way to accomplish the same thing? : (I tried "program |& cat |") but to no avail.... That's csh syntax, and perl mostly only invokes sh (except for globbing). Say open(FH, "program 2>&1 |") That says fd 2 is a duplicate of fd 1. Larry