Can someone tell me whats wrong with this?

Adrian Eyre a.eyre at optichrome.com
Fri Feb 4 08:05:06 EST 2000


>      os.system("export CVSROOT='os.system(TmpGrep)'")
>      os.system("echo $CVSROOT")

These are 2 separate shell sessions, if you want CVSROOT to be available
for the 2nd command, you must do both lines in one os.system.

You might find it easier, though, to use the -d parameter.

def Cvs_Update():
     module = raw_input("Module: ")
     cvsroot = os.system("grep -w " + TmpMod + " /etc/hscvs.conf | awk -F=
'{ print $2 }'")
     os.system("cvs -d " + cvsroot + " update " + module")

-----------------------------------------------------------------
Adrian Eyre <a.eyre at optichrome.com> - http://www.optichrome.com





More information about the Python-list mailing list