Command line notification

This week I wrote a bash function that curls the SendGrid API and sends a Boxcar notification. This is useful to chain to the end of long-running commands, e.g. transcoding a video. When the command finishes I get a push notification on my phone.

If you're unfamiliar with the various ways to chain commands together in bash, here's a cheatsheet. One thing I didn't know is that you can combine the various operators like long-running command || alert "failure!" && alert "success!".

Happy scripting.

Comments can be made via the comment box below or by leaving a comment on an issue over at the blog-comments repo with the title of the issue being the path of the post, e.g. writing/ajax-and-rails.