send slack message from command line
#!/bin/sh
curl -X POST --data-urlencode "payload={\"channel\": \"#alert\", \"username\": \"mybot\", \"text\": \"$*\", \"icon_emoji\": \":name_badge:\"}" https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX$ chmod +x /usr/local/bin/notifyme
$ notifyme hello world!
# or after some command
$ sleep 5; notifyme process is finishedLast updated