ssup
is a simple cross-platform tool to send notifications via cli to local system or telegram.
It can also be used to get alerted after a long-running (or otherwise) command finishes. This can be used either by specifying the command at the end of the ssup command, or by chaining ssup with other commands. See the examples/CLI options below for more.
```
$ ssup -m "Hello world!"
$ export SSUPTGBOT_TOKEN=
$ ssup -m "Hello world!" sleep 5
$ sleep 5; ssup -m "Hello world!" # Always send notification $ sleep 5 && ssup -m "Hello world!" # Send notification only on success $ sleep 5 || ssup -m "Hello world!" # Send notification only on failure
```
notifica
crate)```
█████ █████ █████ ████ ████████
███░░ ███░░ ░░███ ░███ ░░███░░███
░░░█████ ░█████ ░███ ░███ ░███ ░███
░░░░███░░░░███ ░███ ░███ ░███ ░███
██████ ██████ ░░████████ ░███████
░░░░░░░ ░░░░░ ░░░░░░░░ ░███░░░
░███
█████
░░░░░
ssup 0.3.3 - Shantanu Goel
USAGE:
ssup [OPTIONS] --message
ARGS:
FLAGS: -h, --help Prints help information -V, --version Prints version information
OPTIONS: -t, --title
curl https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/getUpdates | jq .message.chat.id
$TELEGRAM_BOT_TOKEN
by the token value that you got in step 1curl
and jq
if you don't have them alreadyhttps://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/getUpdates
and search for id:
to get the valueFor linux platforms, this crate has a native dependency on libdbus, so you'd need to install a corresponding package (e.g. libdbus-1-dev on debian/ubuntu) before trying to compile it.