Re: CVS login in einem Skript

From: Martin Cracauer <cracauer(at)cons.org>
Date: Tue, 1 Aug 2000 09:49:50 +0200

In <owner-de-bsd-questionsATDE.FreeBSD.ORG--0vsnsqwck2.fsf(at)cs.uni-magdeburg.de>, Roland Jesse wrote:
> cvs login # Hier fragt er nach dem Passwort! Wie dumm.

Ich mach's mit expect:
#! /usr/local/bin/expect

set timeout 300
# ruft script auf, dass viele cvs login hat
eval spawn /home/cracauer/preserve/cvs-stupid-innerst
while {1} {
        expect {
                "CVS password:" {send "\r"}
                eof {exit 0}
        }
}

Das mit dem ~/.cvspass funktioniert bei mir nur, wenn das passwort
nicht leer ist, irgendwas mach ich noch falsch. Aber mit expect
geht's auch.

Martin

-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer@bik-gmbh.de> http://www.bik-gmbh.de/~cracauer/
FreeBSD - where you want to go. Today. http://www.freebsd.org/
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Tue 01 Aug 2000 - 09:50:31 CEST

search this site