home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / perl / 7048 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.2 KB  |  26 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!concert!uvaarpa!darwin.sura.net!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!ncar!csn!cherokee!da_vinci!lookout.it.uswc.uswest.com!rray
  3. From: rray@lookout.it.uswc.uswest.com (Randy J. Ray)
  4. Subject: Distinguishing stdout and stderr on a pipe
  5. Message-ID: <BxxI3B.G8p@da_vinci.it.uswc.uswest.com>
  6. Sender: rray@snakepit (Randy J. Ray)
  7. Nntp-Posting-Host: snakepit
  8. Organization: US WEST Communications, Inc. -- Denver, CO
  9. Date: Wed, 18 Nov 1992 20:25:59 GMT
  10. Lines: 14
  11.  
  12. Is there a way to read from a pipe and capture both stdout and stderr, but
  13. still be able to distunguish them? I need to run a command while formatting
  14. returned data one way, and errors a different way.
  15.  
  16. I have not been able to find any references to this in the Camel book or the
  17. USENIX tutorial.
  18.  
  19. Randy
  20. -- 
  21. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22. Randy J. Ray -- U S WEST IT/CSD                 rray@lookout.it.uswc.uswest.com
  23.                                                            Phone: (303)595-2852
  24. "It's not denial. I'm just very selective about the reality I accept." --Calvin
  25. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26.