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

18 Replies, 845 Views

"What's the best way to monitor a python process running in the background?"

Hey folks!

So I’ve got this python process running in the background, and I wanna keep tabs on it without babysitting the terminal 24/7.

What’s your go-to method?

I’ve tried `ps aux | grep python`, but it feels clunky.

Also, how do you handle crashes? Like, if the python process running suddenly dies, is there a way to auto-restart it?

Bonus Q: Any lightweight tools to log its output?

Thanks in advance!

(ps: sorry for typos, typing this on my phone lol)

Messages In This Thread
How can I check if a Python process is running and manage it effectively? or What's the best way to m - by - 13-11-2024, 08:22 PM



Users browsing this thread: 1 Guest(s)