nohup

Linux NoHup fails for Streaming API IG Markets where file is python

Linux NoHup fails for Streaming API IG Markets where file is python Question: This is quite a specific question regarding nohup in linux, which runs a python file. Back-story, I am trying to save down streaming data (from IG markets broadcast signal). And, as I am trying to run it via a remote-server (so I …

Total answers: 1

How to run nohup command from Python script?

How to run nohup command from Python script? Question: I have a simple question. I have tried to search for a solution but there are no answers which would explain what I need. The question is: How do I start a nohup command from Python? Basically the idea is, that I have a Python script …

Total answers: 1

How to constantly run Python script in the background on Windows?

How to constantly run Python script in the background on Windows? Question: I have created a script that moves files from one folder to another. But since the original folder is the Downloads folder I need it to always run in the background. I also have a standard Batch file that looks something like this: …

Total answers: 5

Nohup for Python script not working when running in the background with &

Nohup for Python script not working when running in the background with & Question: Boiling down to the smallest problem here is a simple python script that I want to run using nohup on linux. I run it using the following (on linux): nohup python test.py & The command seems to just not do anything, …

Total answers: 4

Nohup is not writing log to output file

Nohup is not writing log to output file Question: I am using the following command to run a python script in the background: nohup ./cmd.py > cmd.log & But it appears that nohup is not writing anything to the log file. cmd.log is created but is always empty. In the python script, I am using …

Total answers: 7

Run a program from python, and have it continue to run after the script is killed

Run a program from python, and have it continue to run after the script is killed Question: I’ve tried running things like this: subprocess.Popen([‘nohup’, ‘my_command’], stdout=open(‘/dev/null’, ‘w’), stderr=open(‘logfile.log’, ‘a’)) This works if the parent script exits gracefully, but if I kill the script (Ctrl-C), all my child processes are killed too. Is there a way …

Total answers: 5