os.system question
Robin Thomas
robin.thomas at starmedia.net
Fri Apr 13 00:00:39 EDT 2001
At 11:36 AM 4/13/01 +0800, you wrote:
>Hi folks,
>
>This may sound silly, but I have a question on os.system().
>
>Let's say I have a script while calls some program XXX via
>os.system(). Will python wait for XXX to finish what its
>doing before continuing on with the rest of the script?
Yes.
>In this case I want
>python to wait for XXX to finish, but what if I wanted
>python to just mosey on down while launching a
>subprocess...(ie not wait) How would this be done?
os.fork(), if on Unix. See
http://www.python.org/doc/current/lib/os-process.html
for all your process management needs.
The documentation is your friend.
--
Robin Thomas
Engineering
StarMedia Network, Inc.
robin.thomas at starmedia.net
More information about the Python-list
mailing list