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. > > 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