Run nohup python bgservice.py &
to get the script to ignore the hangup signal and keep running. Output will be put in nohup.out
.
Ideally, you’d run your script with something like supervise
so that it can be restarted if (when) it dies.
More Related Contents:
- How do I get a Cron like scheduler in Python? [closed]
- Execute Python script via crontab
- Cron and virtualenv
- Scheduling Python Script to run every hour accurately
- Crontab not executing a Python script? [duplicate]
- Running a bash script from a cronjob fails with “No such file or directory”
- Python script as linux service/daemon
- Cron job: how to run a script that requires to open display?
- How to schedule a function to run every hour on Flask?
- How to run a python file using cron jobs
- Environment Variables when script run by cron
- Apache Airflow scheduler does not trigger DAG at schedule time
- difference between arrays in numpy
- How do I open a new txt file using path
- Parameter substitution for a SQLite “IN” clause
- Time complexity of string slice
- BeautifulSoup findAll() given multiple classes?
- How do I select elements of an array given condition?
- If range() is a generator in Python 3.3, why can I not call next() on a range?
- How do I plot only a table in Matplotlib?
- search by ObjectId in mongodb with pymongo
- How to use Kalman filter in Python for location data?
- How do I run Python script using arguments in windows command line
- How do I set the figure title and axes labels font size?
- Circular Reference with python lists
- How to replace a double backslash with a single backslash in python? [duplicate]
- How to center labels in histogram plot
- Possible to change a function’s repr in python?
- How do I use a Boolean in Python?
- numerical sort a column containing numbers and strings (pandas/python)