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