Skip to content

Instantly share code, notes, and snippets.

@omar-yassin
Created October 9, 2015 17:53
Show Gist options
  • Save omar-yassin/3d2b1ad717551f832ae6 to your computer and use it in GitHub Desktop.
Save omar-yassin/3d2b1ad717551f832ae6 to your computer and use it in GitHub Desktop.
Flowdock: Tail log and stream to flowdock FLOW
unbuffer tail -f /var/log/log.log | egrep --line-buffered "DEPLOY_SUMMARY" | xargs -I {} /usr/bin/curl -XPOST -H "content-type:application/json" -d '{"content":"{}","external_user_name": "Deploy"}' https://api.flowdock.com/v1/messages/chat/xxxxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment