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

18 Replies, 857 Views

If you want lightweight logging, try `tee`:

```bash
python your_script.py | tee -a output.log
```

For crashes, maybe a cron job to check if the process is alive and restart it?

Not the cleanest, but gets the job done.

Messages In This Thread



Users browsing this thread: 1 Guest(s)