Re: How do I execute a command from within python and wait on that command?

2008-02-15 Thread Matt Nordhoff
Rafael Sachetto wrote:
> os.system(command)
> 
> or
> 
> proc = popen2.Popen3(command)
> proc.wait()

I don't know about "cleanly terminat[ing] the command shell", but you
should use the subprocess module now, not any of the other functions
scattered around.
-- 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How do I execute a command from within python and wait on that command?

2008-02-15 Thread Rafael Sachetto
os.system(command)

or

proc = popen2.Popen3(command)
proc.wait()

2008/2/15, black_13 <[EMAIL PROTECTED]>:
> how do i exec a command (such as xcopy) from with win32 python and
>  wait on that command
>  to come to completion? and also cleanly terminate the command shell?
>  thanks
>  black_13
>
> --
>  http://mail.python.org/mailman/listinfo/python-list
>


-- 
Rafael Sachetto Oliveira

Sir - Simple Image Resizer
http://rsachetto.googlepages.com
-- 
http://mail.python.org/mailman/listinfo/python-list


How do I execute a command from within python and wait on that command?

2008-02-15 Thread black_13
how do i exec a command (such as xcopy) from with win32 python and
wait on that command
to come to completion? and also cleanly terminate the command shell?
thanks
black_13
-- 
http://mail.python.org/mailman/listinfo/python-list