[英]How to run a python program in the background?
How can I make a python program run in the background? 如何使python程序在后台运行? 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?
当我使用py2exe将其转换为exe时,有什么方法可以做到? I am using python 2.7.8.
我正在使用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
谢谢
If you are asking strictly how to hide the console as part of the py2exe bundling, that's simple. 如果您严格要求如何在py2exe捆绑中隐藏控制台,那很简单。 See - Hiding command-line dialog in py2exe
请参阅- 在py2exe中隐藏命令行对话框
If you are asking how to have a program without a GUI, just build the program in py2exe as above and run it. 如果您询问如何在不使用GUI的情况下创建程序,只需按照上述方法在py2exe中构建程序并运行它。 Unless you have created a GUI, it will run on it's own until it terminates or is terminated.
除非您创建了GUI,否则它将自行运行,直到终止或终止。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.