home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!convex!convex!tchrist
- From: Tom Christiansen <tchrist@convex.COM>
- Subject: Re: Problems with "tee"
- Originator: tchrist@pixel.convex.com
- Sender: usenet@news.eng.convex.com (news access account)
- Message-ID: <1992Aug21.173435.28739@news.eng.convex.com>
- Date: Fri, 21 Aug 1992 17:34:35 GMT
- Distribution: usa
- Reply-To: tchrist@convex.COM (Tom Christiansen)
- References: <none> <1992Aug21.172813.13174@odin.corp.sgi.com>
- Nntp-Posting-Host: pixel.convex.com
- Organization: Convex Computer Corporation, Colorado Springs, CO
- X-Disclaimer: This message was written by a user at CONVEX Computer
- Corp. The opinions expressed are those of the user and
- not necessarily those of CONVEX.
- Lines: 28
-
- From the keyboard of rodman@pkr.asd.sgi.com (Paul Rodman):
- :
- :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.
-
- But you've redirected stdout into foobaz! Why would you expect it
- on your terminal?
-
- --tom
- --
- Tom Christiansen tchrist@convex.com convex!tchrist
-
- OK, enough hype.
- --Larry Wall in the perl man page
-