Skip to content

Instantly share code, notes, and snippets.

@intarstudents
Created August 20, 2011 09:28
Show Gist options
  • Save intarstudents/1158902 to your computer and use it in GitHub Desktop.
Save intarstudents/1158902 to your computer and use it in GitHub Desktop.
Parse (tail) nginx stderr for FastCGI PHP errors
#!/bin/bash
tail -f $1 | awk -F '"' 'BEGIN {RS = "\"\n" ; } /FastCGI/ {split($1,t,"["); print t[1],$2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment