hide python window
Tim Golden
tim.golden at viacom-outdoor.co.uk
Fri May 26 10:19:53 EDT 2006
[Bell, Kevin]
| When I run a script, how can I make it run in the background? I don't
| want to see the command window because it runs all day. I'm on
| windows...
Broadly, two options (depending on what "in the background" means):
1) Complex, but complete: run it as a service. See the examples
in the pywin32 extensions, and various discussions on this and
the python-win32 mailing list.
Advantage:
runs thile the machine runs
Disadvantage:
more complex to set up
runs by default as a user with few privs
2) Simpler: run the script with the pythonw.exe executable (or
rename it to <whatever>.pyw). This will run without a console
window.
Advantage:
simpler - just use a different exe
Disadvantage:
will stop running when you log off
TJG
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
More information about the Python-list
mailing list