Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: More general zsh-scripting question



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