[英]How can i make my python program work in background
I've made a program that needs to work in the background even if i close it.我制作了一个程序,即使我关闭它也需要在后台运行。
I couldn't find a way to do it, open to any suggestions.我找不到办法去做,欢迎任何建议。
As a matter of fact, i am not interested into keep running program after closing tab in Windows OS, so i will explain the solution in Linux, Ubuntu事实上,我对在 Windows 操作系统中关闭选项卡后继续运行程序不感兴趣,所以我将在 Linux、Ubuntu 中解释解决方案
you can try such things like你可以尝试这样的事情
nohup filename &
or something Like或类似的东西
nohup filename > /dev/null
Another key word that may help you to find out your solution is deamon
that this link will explain it well.另一个可以帮助您找到解决方案的关键词是deamon
, 这个链接会很好地解释它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.