Matthew It should be enough to get you in the right direction though. Look at this post on server fault for more info on cron and some troubleshooting assistance. On a more mature SE site I would downvote this. There is not reason for such a messy workaround. See Butters' excellent answer.
This is just another option, although not the best. Then troubleshoot why it didn't work. Can't be bothered; this works fine for me and is much simpler to setup then cron. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Helping communities build their own LTE networks. Podcast Making Agile work for data science. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.
Related 0. Hot Network Questions. Question feed. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. How to run a python program in the background even after closing the terminal?
Asked 8 years ago. Active 7 months ago. Viewed k times. Improve this question. See here: askubuntu. Also a possible duplicate. Seth Yes, that puts it in the background, but when the terminal is quit, the program goes away too TechGeeky Yes. Show 1 more comment. Active Oldest Votes. Use the shebang line in your python script.
To see the process again, use in terminal, ps ax grep test. Improve this answer. Great but I guess you should add python after nohup i. For the latter you need to use the shebang line in your python script and make the script executable as shown above. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Helping communities build their own LTE networks.
Podcast Making Agile work for data science. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Linked Related Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled. Accept all cookies Customize settings.
0コメント