From: Andrey Borzenkov <arvidjaar@newmail.ru>
To: zsh-users@sunsite.dk
Cc: Meino Christian Cramer <Meino.Cramer@gmx.de>
Subject: Re: More general zsh-scripting question
Date: Sun, 22 May 2005 13:03:04 +0400 [thread overview]
Message-ID: <200505221303.05457.arvidjaar@newmail.ru> (raw)
In-Reply-To: <20050522.070041.74749928.Meino.Cramer@gmx.de>
[-- Attachment #1: Type: text/plain, Size: 823 bytes --]
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 <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
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-05-22 9:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-22 5:00 Meino Christian Cramer
2005-05-22 9:03 ` Andrey Borzenkov [this message]
2005-05-22 11:13 ` Meino Christian Cramer
2005-05-22 12:11 ` Hannu Koivisto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200505221303.05457.arvidjaar@newmail.ru \
--to=arvidjaar@newmail.ru \
--cc=Meino.Cramer@gmx.de \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).