Created
January 27, 2015 21:03
-
-
Save ip2k/7fe7861c6a695d0779dc to your computer and use it in GitHub Desktop.
pipe stdout of any command to a HipChat room
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias hcpipe='tee >(cat >&2 >&1)| curl --location -XPOST https://api.hipchat.com/v2/room/HIPCHAT-API-ROOM-NUMBER/notification?auth_token=YOUR-HIPCHAT-NOTIFY-AUTH-TOKEN-FOR-THAT-ROOM -H "Content-Type: text/plain" -d "/code $(cat 2>&1)"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
to use this, you'd do e.g.