Skip to content

Instantly share code, notes, and snippets.

@mrchimp
Created July 27, 2015 01:25
Show Gist options
  • Select an option

  • Save mrchimp/821d33f8d8db9d63fe3d to your computer and use it in GitHub Desktop.

Select an option

Save mrchimp/821d33f8d8db9d63fe3d to your computer and use it in GitHub Desktop.

Revisions

  1. mrchimp created this gist Jul 27, 2015.
    4 changes: 4 additions & 0 deletions talklog.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    tail --lines=0 -f /var/log/apache2/error.log \
    | grep --line-buffered -F "PHP Fatal error" \
    | sed -u -e 's/\[[^]]*\]//g' \
    | while read line ; do say $line; echo $line ; done