0

I am trying to create a python script that will keep track of a log file which is piped output from a console. If an "Error" pops up in it, I would like to send myself a telegram message (I know that API) so I can get a notification that I got an error. So what I would like to do is simply this in pseudocode

while true:
    if isModified(file):
         print(changed_text)

I'm not sure if something like this is possible, but it would be great if someone can assist with an idea or process.

Nom
  • 189
  • 4
  • 14

0 Answers0