Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: More general zsh-scripting question
- X-seq: zsh-users 8889
- From: Meino Christian Cramer <Meino.Cramer@xxxxxx>
- To: arvidjaar@xxxxxxxxxx
- Subject: Re: More general zsh-scripting question
- Date: Sun, 22 May 2005 13:13:29 +0200 (CEST)
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <200505221303.05457.arvidjaar@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050522.070041.74749928.Meino.Cramer@xxxxxx> <200505221303.05457.arvidjaar@xxxxxxxxxx>
From: Andrey Borzenkov <arvidjaar@xxxxxxxxxx>
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@xxxxxxxxxxxxxxxxxxx:/cvsroot/snd login
> > cvs -z3 -d:pserver:anonymous@xxxxxxxxxxxxxxxxxxx:/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 <RETURN>.
> >
> > 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author