home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ames!data.nas.nasa.gov!ace!jns
- From: jns@ace.nas.nasa.gov (John N. Stewart)
- Newsgroups: comp.lang.perl
- Subject: Re: Problems with "tee"
- Message-ID: <1992Aug21.202726.15093@nas.nasa.gov>
- Date: 21 Aug 92 20:27:26 GMT
- References: <none> <1992Aug21.172813.13174@odin.corp.sgi.com>
- Sender: news@nas.nasa.gov (News Administrator)
- Distribution: usa
- Organization: NAS, NASA Ames Research Center, Moffett Field, CA
- Lines: 24
-
- In article <1992Aug21.172813.13174@odin.corp.sgi.com> rodman@pkr.asd.sgi.com (Paul Rodman) writes:
- >
- >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;
- >---------------------------------------------------------
-
-
- The ">" is redirecting STDOUT into the file.
-
- --
- John Stewart (Ace)
- CSS/DSS
- NASA Ames Research Center
- (415) 604-4345
-