How can I make a python program run in the background? I don't need the console running since all it does is sends me emails with updates once an hour. Is there a way to do it when I convert it to exe using py2exe? I am using python 2.7.8. Also, is there a way to make it open in the boot menu immediately when the computer turns on from the code? Thank you
Asked
Active
Viewed 1,205 times
1 Answers
2
If you are asking strictly how to hide the console as part of the py2exe bundling, that's simple. See - Hiding command-line dialog in py2exe
If you are asking how to have a program without a GUI, just build the program in py2exe as above and run it. Unless you have created a GUI, it will run on it's own until it terminates or is terminated.
-
From what I understood, he wants a python daemon to run in the background, without having to have a console window being open. He also wants to know if he can set the program to run on startup. – Ben Schwabe Nov 22 '14 at 18:18
-
1@bspymaster, you're correct. Related question with multiple solutions - http://stackoverflow.com/questions/32404/is-it-possible-to-run-a-python-script-as-a-service-in-windows-if-possible-how – Ian Price Nov 22 '14 at 18:22