Logging into CVS using Python

Mike uptonothing at yahoo.com
Tue Apr 8 16:47:13 CEST 2003


Howdy All,

Thanks to everyone who replied to my previous post, even though my post was
horribly worded. Now onto my question.

How do I use Python to login into CVS? Here's what I have tried, but it has
failed. I'm not even sure that I'm using the correct methods.

import popen2

pipe_in, pipe_out = popen2.popen2("cvs -d
:pserver:mike at server.com:1000/path/to/CVS login")

s = pipe_in.readline()

print s

pipe_out.write("PASSWORD")

pipe_out.flush()

pipe_in.close()
pipe_out.close()

The code just results in "cvs login: authorization failed." Any help would
be appreciated.

Thanks,
Mike






More information about the Python-list mailing list