Skip to main content
added 221 characters in body
Source Link
user212865
user212865

EDIT: As this was brought up, is it necessary that the tailing function would be non blocking? As I understand I wont be doing nothing until a line is yielded. What would be the benefits of going one way or the other?

EDIT: As this was brought up, is it necessary that the tailing function would be non blocking? As I understand I wont be doing nothing until a line is yielded. What would be the benefits of going one way or the other?

Became Hot Network Question
Tweeted twitter.com/StackCodeReview/status/1192819209811759112
edited tags
Link
user212865
user212865
added 87 characters in body; edited title
Source Link
user212865
user212865

Reduce if statements for checking various conditions for log line Log monitoring with pythonic tail -f and process killing

I'm tryingThe purpose of this cluster of functions is to write a monitoring function in Pythontail the log file and kill/restart processes from shell (the latter is not yet implemented).

Reduce if statements for checking various conditions for log line

I'm trying to write a monitoring function in Python.

Log monitoring with pythonic tail -f and process killing

The purpose of this cluster of functions is to tail the log file and kill/restart processes from shell (the latter is not yet implemented).

added 1153 characters in body
Source Link
user212865
user212865
Loading
Source Link
user212865
user212865
Loading