home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!sgigate!odin!pkr.asd.sgi.com!rodman
- From: rodman@sgi.com
- Newsgroups: comp.lang.perl
- Subject: Problems with "tee"
- Message-ID: <1992Aug21.172813.13174@odin.corp.sgi.com>
- Date: 21 Aug 92 17:28:13 GMT
- References: none
- Sender: news@odin.corp.sgi.com (Net News)
- Reply-To: rodman@pkr.asd.sgi.com (Paul Rodman)
- Distribution: usa
- Organization: Silicon Graphics Inc.
- Lines: 25
- Nntp-Posting-Host: pkr.asd.sgi.com
-
-
- I'm having a problem with the following use of "/bin/tee" within
- a open statement.
-
- This is the sampleprogram:
- ---------------------------------------------------------
- #!/usr/local/bin/perl
-
- open (FOO, "| tee >foobaz");
- print FOO "This is a test of tee with perl\n";
- close FOO;
-
- exit;
- ---------------------------------------------------------
-
- When the program is run, the file is created correctly, but nothing appears
- on STDOUT. From the manual this is not what I would expect.
-
- I'm running this on an SGI Personal IRIS, running IRIX etc. Is this a problem
- with perl or "tee"?
-
-
- Paul K. Rodman "Current integrated circuit construction techniques seem
- rodman@sgi.com to resemble geology more than manufacturing.."
- KA1ZA -K.E. Drexler (paraphrased)
-