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

  1. Path: sparky!uunet!olivea!sgigate!odin!pkr.asd.sgi.com!rodman
  2. From: rodman@sgi.com
  3. Newsgroups: comp.lang.perl
  4. Subject: Problems with "tee"
  5. Message-ID: <1992Aug21.172813.13174@odin.corp.sgi.com>
  6. Date: 21 Aug 92 17:28:13 GMT
  7. References: none
  8. Sender: news@odin.corp.sgi.com (Net News)
  9. Reply-To: rodman@pkr.asd.sgi.com (Paul Rodman)
  10. Distribution: usa
  11. Organization: Silicon Graphics Inc.
  12. Lines: 25
  13. Nntp-Posting-Host: pkr.asd.sgi.com
  14.  
  15.  
  16. I'm having a problem with the following use of "/bin/tee" within 
  17. a open statement. 
  18.  
  19. This is the sampleprogram:
  20. ---------------------------------------------------------
  21. #!/usr/local/bin/perl
  22.  
  23. open (FOO, "| tee >foobaz");
  24. print FOO "This is a test of tee with perl\n";
  25. close FOO;
  26.  
  27. exit;
  28. ---------------------------------------------------------
  29.  
  30. When the program is run, the file is created correctly, but nothing appears
  31. on STDOUT. From the manual this is not what I would expect.
  32.  
  33. I'm running this on an SGI Personal IRIS, running IRIX etc. Is this a problem
  34. with perl or "tee"?
  35.  
  36.  
  37. Paul K. Rodman       "Current integrated circuit construction techniques seem
  38. rodman@sgi.com        to resemble geology more than manufacturing.." 
  39. KA1ZA                            -K.E. Drexler (paraphrased)
  40.