A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/343669.html below:

execute commands independantly

execute commands independantly execute commands independantlyLeif K-Brooks eurleif at ecritters.biz
Tue Sep 6 09:27:27 EDT 2005
Mike Tammerman wrote:
> Hi,
> 
> I am trying to execute an executable or a pyton script inside my
> program. I looked at the subprocess and os module. But all the
> functions in these modules blocks my application.

subprocess doesn't block unless you call .wait():

from subprocess import Popen
proc = Popen('sleep 2; echo "Hello, world!"', shell=True)
print "In two seconds, something will happen."
proc.wait()
print "Did you see that?"

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4