Skip to main content

Notify to the slack channel using the incoming webhook when the previous command has ended.

Project description

Notify to the slack channel using the incoming webhooks when the previous command has ended.


  • Python 2



$ pip install cht


If you don’t want to install cht with pip, download the main script.

# assume that ~/bin is included in $PATH
$ curl -o ~/bin/cht
$ chmod a+x ~/cht


$ <previous command>; cht $? [-u <url>] [-c <channel>] [-m <message>]

if you want to send the previous command’s output to the slack channel, use pipe.

$ <previous command> | cht [-u <url>] [-c <channel>] [-m <message>]

Environment Variable

You can use the following environment variables to set the channel and webhook url.

  • CHT_URL: webhook url
  • CHT_CHANNEL: channel name

Command line arguments are prefered to the environment variables.


  1. Fork (
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Create a new Pull Request



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cht, version 1.2.1
Filename, size File type Python version Upload date Hashes
Filename, size cht-1.2.1.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page