title: Shellscript to monitor a log file if keyword triggers then execute a command?
body: <p>Is there a cheap way to monitor a log file like <code>tail -f log.txt</code>, then if something like <code>[error]</code> appears, execute a command?</p>
  
  <p>Thank you.</p>