From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17660 invoked from network); 22 May 2005 09:03:26 -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 09:03:26 -0000 Received: (qmail 91718 invoked from network); 22 May 2005 09:03:19 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 May 2005 09:03:19 -0000 Received: (qmail 28574 invoked by alias); 22 May 2005 09:03:12 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8887 Received: (qmail 28560 invoked from network); 22 May 2005 09:03:11 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 22 May 2005 09:03:11 -0000 Received: (qmail 90694 invoked from network); 22 May 2005 09:03:11 -0000 Received: from flock1.newmail.ru (212.48.140.157) by a.mx.sunsite.dk with SMTP; 22 May 2005 09:03:08 -0000 Received: (qmail 12512 invoked from network); 22 May 2005 08:59:06 -0000 Received: from unknown (HELO ?10.0.0.1?) (arvidjaar@newmail.ru@83.237.208.228) by smtpd.newmail.ru with SMTP; 22 May 2005 08:59:06 -0000 From: Andrey Borzenkov To: zsh-users@sunsite.dk Subject: Re: More general zsh-scripting question Date: Sun, 22 May 2005 13:03:04 +0400 User-Agent: KMail/1.8 Cc: Meino Christian Cramer References: <20050522.070041.74749928.Meino.Cramer@gmx.de> In-Reply-To: <20050522.070041.74749928.Meino.Cramer@gmx.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3821399.9rgJ5T0TKE"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200505221303.05457.arvidjaar@newmail.ru> X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 --nextPart3821399.9rgJ5T0TKE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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=3D1 > Why do you need cvs login in script? You only have to do login once, then C= VS=20 remembers login/password/repository combination and does not ask for it=20 anymore. > > 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=20 nslookup wrapper. =2Dandrey --nextPart3821399.9rgJ5T0TKE Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBCkErJR6LMutpd94wRAvY7AJ932Vv9Gd27QRpaRDYQhYnc2SNwoQCfaCUV 9bFNnWtBzB96NDmfP6F8uJM= =cFfn -----END PGP SIGNATURE----- --nextPart3821399.9rgJ5T0TKE--