Executing WinXP commands using os module

pranav pranny at gmail.com
Fri Jan 23 07:08:36 EST 2009


On Jan 23, 5:05 pm, Chris Rebert <c... at rebertia.com> wrote:
> On Fri, Jan 23, 2009 at 3:50 AM, pranav <pra... at gmail.com> wrote:
> > Greetings,
> > I am writing a code to perform operations like checkout, check-in and
> > others for SS. (SS is the command line utility for Visual SafeSource,
> > VSS). I am familiar with all the commands for this purpose. I know
> > li'l python also.
> > What i want to learn is how do i use the command line arguments in os
> > (or any other call that will fulfill my purpose). I can use popen to
> > create a command prompt. But i need to use commands like
>
> > ss checkout $\projectName\file -Yusername,password -c'Test comment'
>
> You want the `subprocess` module. Seehttp://docs.python.org/library/subprocess.html
>
> Cheers,
> Chris
>
> --
> Follow the path of the Iguana...http://rebertia.com

Thanks, will try it



More information about the Python-list mailing list