From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18270 invoked from network); 25 Aug 1999 18:36:36 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 25 Aug 1999 18:36:36 -0000 Received: (qmail 25558 invoked by alias); 25 Aug 1999 18:36:14 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2521 Received: (qmail 25551 invoked from network); 25 Aug 1999 18:36:13 -0000 Sender: jrh@evermore.vicor-nb.com To: Zefram Cc: zsh-users@sunsite.auc.dk Subject: Re: Perl like select()? References: From: Josh Howard Date: 25 Aug 1999 11:35:39 -0700 In-Reply-To: Zefram's message of "Wed, 25 Aug 1999 17:16:04 +0100 (BST)" Message-ID: <87u2pnu2ro.fsf@evermore.vicor-nb.com> User-Agent: Gnus/5.070095 (Pterodactyl Gnus v0.95) XEmacs/20.4 (Emerald) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Well, my ignorance is now managable. Thanks. Zefram writes: > Josh Howard wrote: > >Is there any way, in a script, to use a "Perl-like" select() to > >associate stdout with a particular file, before the execution of the > >rest of the script? > > exec > file > > permanently redirects stdout. Any redirection can be used this way. > > > For instance: I have a shell script that I want to > >simply put ">log.file" at the top, and then start echo'ing and doing > >various output and expect everything to go to log.file, > > Interestingly enough, that's the syntax I used for this operation when > designing a new shell from scratch[1]. > > -zefram > > [1] The Elate shell. It's proprietary and doesn't run on Unix, so don't > ask for it. > -- Josh Howard