"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)
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)
