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

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!usenet.coe.montana.edu!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!dl2p+
  2. From: dl2p+@andrew.cmu.edu (Douglas Allen Luce)
  3. Newsgroups: comp.lang.perl
  4. Subject: Re: Problems with "tee"
  5. Message-ID: <geZIBQS00XQL8IuKYo@andrew.cmu.edu>
  6. Date: 21 Aug 92 11:26:20 GMT
  7. References: none
  8.     <1992Aug21.172813.13174@odin.corp.sgi.com>
  9. Distribution: usa
  10. Organization: Chemical Engineering, Carnegie Mellon, Pittsburgh, PA
  11. Lines: 22
  12. In-Reply-To: <1992Aug21.172813.13174@odin.corp.sgi.com>
  13.  
  14. Excerpts from netnews.comp.lang.perl: 21-Aug-92 Problems with "tee"
  15. rodman@sgi.com (794)
  16.  
  17.  
  18. > I'm having a problem with the following use of "/bin/tee" within 
  19. > a open statement. 
  20.  
  21. > This is the sampleprogram:
  22. > ---------------------------------------------------------
  23. > #!/usr/local/bin/perl
  24.  
  25. > open (FOO, "| tee >foobaz");
  26. > print FOO "This is a test of tee with perl\n";
  27. > close FOO;
  28.  
  29. > exit;
  30. > ---------------------------------------------------------
  31.  
  32.  
  33. Try open(FOO,"|tee foobaz") for best results.
  34.  
  35. dug
  36.