home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / perl / 5423 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  1.1 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ames!data.nas.nasa.gov!ace!jns
  2. From: jns@ace.nas.nasa.gov (John N. Stewart)
  3. Newsgroups: comp.lang.perl
  4. Subject: Re: Problems with "tee"
  5. Message-ID: <1992Aug21.202726.15093@nas.nasa.gov>
  6. Date: 21 Aug 92 20:27:26 GMT
  7. References: <none> <1992Aug21.172813.13174@odin.corp.sgi.com>
  8. Sender: news@nas.nasa.gov (News Administrator)
  9. Distribution: usa
  10. Organization: NAS, NASA Ames Research Center, Moffett Field, CA
  11. Lines: 24
  12.  
  13. In article <1992Aug21.172813.13174@odin.corp.sgi.com> rodman@pkr.asd.sgi.com (Paul Rodman) writes:
  14. >
  15. >I'm having a problem with the following use of "/bin/tee" within 
  16. >a open statement. 
  17. >
  18. >This is the sampleprogram:
  19. >---------------------------------------------------------
  20. >#!/usr/local/bin/perl
  21. >
  22. >open (FOO, "| tee >foobaz");
  23. >print FOO "This is a test of tee with perl\n";
  24. >close FOO;
  25. >
  26. >exit;
  27. >---------------------------------------------------------
  28.  
  29.  
  30. The ">" is redirecting STDOUT into the file.
  31.  
  32. --
  33. John Stewart (Ace)
  34. CSS/DSS
  35. NASA Ames Research Center
  36. (415) 604-4345
  37.