home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / perl / 5747 < prev    next >
Encoding:
Internet Message Format  |  1992-09-07  |  821 b 

  1. Path: sparky!uunet!munnari.oz.au!spool.mu.edu!wupost!cs.utexas.edu!sun-barr!news2me.ebay.sun.com!jethro.Corp.Sun.COM!oogoody!tmhoff
  2. From: tmhoff@oogoody.Corp.Sun.COM (Todd Hoff)
  3. Newsgroups: comp.lang.perl
  4. Subject: Re: reopening STDOUT as another stream
  5. Date: 5 Sep 1992 18:27:18 GMT
  6. Organization: Sun Microsystems, Inc.
  7. Lines: 8
  8. Distribution: world
  9. Message-ID: <lahv06INN169@jethro.Corp.Sun.COM>
  10. References: <1992Sep5.071243.8404@netlabs.com>
  11. Reply-To: tmhoff@oogoody.Corp.Sun.COM
  12. NNTP-Posting-Host: oogoody.corp.sun.com
  13.  
  14. >If you aren't running an ancient version, ordinary open should work
  15. >fine for that:    open(STDOUT, "| lpr")
  16.  
  17. Not quite what I was looking for. I have DEBUG and LOG output streams.
  18. Sometimes I want DEBUG and LOG to goto STDOUT, sometimes I want them to
  19. goto different streams. In C use freopen. 
  20.  
  21.  
  22.