How can I check if a Python process is running and manage it effectively? or What's the best way to m

18 Replies, 874 Views

If you want something dead simple, just use `nohup` to run your script and redirect output to a file:

```bash
nohup python your_script.py > output.log 2>&1 &
```

Then `tail -f output.log` to watch the logs live.

For crashes, maybe wrap it in a bash loop? Not elegant but works lol.

Messages In This Thread



Users browsing this thread: 1 Guest(s)