From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8831 invoked from network); 22 May 2005 11:12:58 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 22 May 2005 11:12:58 -0000 Received: (qmail 68564 invoked from network); 22 May 2005 11:12:51 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 May 2005 11:12:51 -0000 Received: (qmail 10500 invoked by alias); 22 May 2005 11:12:45 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8889 Received: (qmail 10490 invoked from network); 22 May 2005 11:12:45 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 22 May 2005 11:12:45 -0000 Received: (qmail 67585 invoked from network); 22 May 2005 11:12:45 -0000 Received: from p5485324e.dip0.t-ipconnect.de (HELO solfire) (84.133.50.78) by a.mx.sunsite.dk with SMTP; 22 May 2005 11:12:40 -0000 Received: from localhost ([127.0.0.1]) by solfire with esmtp (Exim 4.42) id 1DZoOg-0003Gc-7X; Sun, 22 May 2005 13:13:37 +0200 Date: Sun, 22 May 2005 13:13:29 +0200 (CEST) Message-Id: <20050522.131329.93018533.Meino.Cramer@gmx.de> To: arvidjaar@newmail.ru Cc: zsh-users@sunsite.dk From: Meino Christian Cramer In-Reply-To: <200505221303.05457.arvidjaar@newmail.ru> References: <20050522.070041.74749928.Meino.Cramer@gmx.de> <200505221303.05457.arvidjaar@newmail.ru> X-Mailer: Mew version 4.1 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Rcpt-To: arvidjaar@newmail.ru, zsh-users@sunsite.dk X-SA-Exim-Mail-From: Meino.Cramer@gmx.de Subject: Re: More general zsh-scripting question Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.1+cvs (built Sat, 28 Aug 2004 13:10:40 +0200) X-SA-Exim-Scanned: Yes (on solfire) X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-0.5 required=6.0 tests=AWL,BAYES_00, RCVD_IN_NJABL_DUL,RCVD_IN_SORBS_DUL autolearn=no version=3.0.2 X-Spam-Hits: -0.5 From: Andrey Borzenkov Subject: Re: More general zsh-scripting question Date: Sun, 22 May 2005 13:03:04 +0400 > On Sunday 22 May 2005 09:00, Meino Christian Cramer wrote: > > For example these two lines are part of a function defined inside a > > script: > > > > cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/snd login > > cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/snd update -d > > cvs-snd index=1 > > > > Why do you need cvs login in script? You only have to do login once, then CVS > remembers login/password/repository combination and does not ask for it > anymore. As I mentioned I have a couple of projects from the net for which I do updates via cvs. Not all use the same cvs server. cvs only stores one login/password/repository combination. > > > > When the second line is executed, the login: prompt stops execution > > of the script and waits for the . > > > > Is there a way to automate this ? > > > > if you still insist on it > > expect > zpty module that is part of zsh > > zsh has some examples of using zpty to drive interactive programs, like > nslookup wrapper. > > -andrey I will try that, thanks! Meino