Follow this guide
Examples
# Match to a *SEARCH_KEYWORD*
tail -f /var/log/syslog | awk '/SEARCH_KEYWORD/'
# Execute a command
(tail -f /var/log/syslog | awk '/TRIGGERING_LINE/ {system("COMMAND_TO_RUN")}' )&
Follow this guide
Examples
# Match to a *SEARCH_KEYWORD*
tail -f /var/log/syslog | awk '/SEARCH_KEYWORD/'
# Execute a command
(tail -f /var/log/syslog | awk '/TRIGGERING_LINE/ {system("COMMAND_TO_RUN")}' )&