简体   繁体   English

如何让我的 python 程序在后台运行

[英]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.

相关问题 如何使我的GUI程序(tkinter)在没有安装python的计算机上工作,从而不会显示控制台窗口? - How can I make my GUI program(tkinter) work on computers with no python installed such that no console window appears? 如何使我的程序回到Python的开头? - How can I make my program return to the beginning in Python? 如何在我的python程序中显示以下文本? - How can I make the following text appear in my python program? 如何使我的 python selenium 项目在 heroku 上工作 - how can I make my python selenium project work on heroku Python:如何使我的 elif 循环工作? - Python: How can I make my elif loop work? 我该如何在python中使我的猜彩色游戏工作? - how can i make my guessing color game work in python? 如何在不阻塞整个程序的情况下使函数在后台运行? - How can I make a function run in the background without blocking my entire program? 我可以从外部查看在后台运行的Python程序的进度吗? - Can I externally view the progress of my Python program running in the background? 我怎样才能让我的 python 程序运行得更快? 我收到以下代码的“killed 9”消息 - How can i make my python program run faster? I get "killed 9" message with following code 我无法让我的python加密程序正常工作 - I can't get my python encryption program to work properly
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM