I'm wondering how to completely automate a checkout. I've tried
os.system('cleartool co ' + pathname)
but that still prompts me to enter a comment about the checkout. Adding more os.system() commands right after doesn't quite work -- they only execute after I've entered the comment.
I'm looking at using subprocess and maybe Popen, but I don't quite understand how they work from the documentation I can find online.
Any help would be much appreciated, thanks!
If you don't need to enter a comment, a simple -nc would be enough:
See
cleartool checkout
man page.If the comment is known, you can add it directly (
-c xxx
)In both cases, the checkout becomes non-interactive, more suite to batch process.