Detecting whether a Python program was invoked in the background or foreground

Kevin Smith Kevin.Smith at sas.com
Thu Oct 11 16:44:16 CEST 2001


Is it possible to detect whether a Python program was invoked in the 
background?  In other words, is there a variable that will differ when 
invoking the following commands.

python myscript.py &
python myscript.py

Kevin Smith
Kevin.Smith at sas.com



More information about the Python-list mailing list