https://stackoverflow.com/questions/207701/python-tutorial-for-total-beginners
https://stackoverflow.com/questions/3548334/python-book-tutorial-to-read-after-finishing-with-the-official-tutorial
https://stackoverflow.com/questions/4418993/python-tutorial-or-reference
Это можно сделать с помощью сценария оболочки
tail -Fn0 catalina.txt | \ while read line ; do echo "$line" | grep "pattern" if [ $? = 0 ] then sendemail( fi done