make cvs pserver/ssh(2) connection with python
Chris Liechti
cliechti at gmx.net
Sun Jul 7 16:50:56 EDT 2002
[posted and mailed]
"Marc" <m.bohlen at tu-bs.de> wrote in
news:20020707.223646.680466996.4043 at tu-bs.de:
> I am searching a way to make a cvs pserver or/and a ssh(protocol
> Version 2) connection with python under Linux/Unix. I've tried to
> control the cvs pserver
> connection by a python frontend which uses the normal cvs binary, but
> it won't work without using the 'normal console interaction' for input
> (maintainly the cvs login).
> I can get the inputstream, but I can't write correctly to the
> outputstream. I get the password query, but the answer fails.
> Perhaps someone have experience in writing a frontend for interactive
> programms under Linux/Unix and can help me.
do you use popen? something like that:
>>> i,o = os.popen2("cat - >tmp")
>>> i.write("hello")
>>> i.close()
>>> o.close()
$ ls
tmp
$ cat tmp
hello
HTH, if not, please include a short example of what you did.
chris
--
Chris <cliechti at gmx.net>
More information about the Python-list
mailing list