From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15789 invoked from network); 18 Jul 2005 19:32:40 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 18 Jul 2005 19:32:40 -0000 Received: (qmail 23116 invoked from network); 18 Jul 2005 19:32:34 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Jul 2005 19:32:34 -0000 Received: (qmail 24562 invoked by alias); 18 Jul 2005 19:32:27 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9106 Received: (qmail 24552 invoked from network); 18 Jul 2005 19:32:27 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 18 Jul 2005 19:32:27 -0000 Received: (qmail 22017 invoked from network); 18 Jul 2005 19:32:27 -0000 Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by a.mx.sunsite.dk with SMTP; 18 Jul 2005 19:32:22 -0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DubKX-0006ny-VR for zsh-users@sunsite.dk; Mon, 18 Jul 2005 21:31:10 +0200 Received: from 241.119-84-212.ippool.ndo.com ([212.84.119.241]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Jul 2005 21:31:09 +0200 Received: from david by 241.119-84-212.ippool.ndo.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Jul 2005 21:31:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: zzapper Subject: Re: capturing output of a script requiring answers to prompts Date: Mon, 18 Jul 2005 20:29:53 +0100 Message-ID: <4n0od1915kcjk8i1tgl3dgs40raevgrq2r@4ax.com> References: <5c9nd157fcj924v4fdcjlesm9fvq7c5lb6@4ax.com> <20050718182714.GB19066@blorf.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 241.119-84-212.ippool.ndo.com X-Newsreader: Forte Free Agent 2.0/32.652 Sender: news X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=ham version=3.0.4 On Mon, 18 Jul 2005 11:27:14 -0700, wrote: >The zsh-specific way to output data to both the terminal and a file is >to use multi-IO: > > ./SCRIPT-FILE >&1 >output.txt > >However, that doesn't capture what the user types. > >..wayne.. This last one did the trick, curiously it didn't display the o/p of the select clause -- zzapper vim -c ":%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg?" http://www.rayninfo.co.uk/tips/ vim, zsh & success tips