Tool to notify you when command will be executed.
Project description
Execution Notifier
This tool provides you ability to send yourself information about looong executed command when it is done. Information will be sent using Telegram Bot, which you can generate for yourself with Telegram BotFather.
Prerequisites
In execution of your application you will need your Telegram ID. To get it visit @exec_notifier_bot and use /start
command.
Installation and running
>>> pip install exec-notifier
>>> exec_notifier config --telegram_id=YOUR_TELEGRAM_ID
>>> exec_notifier notify [your_command_here]
Limitation
If you wnat to run commands with &&
, ||
, ;
, |
, >
in your terminal please use backslash character \ before each of such symbols.
Another way is to put your command in quotes ""
.
Example using quotes
>>> exec_notifier notify "ls -l | head"
>>> exec_notifier notify "ls -l > output.txt"
>>> exec_notifier notify "ls -l && sleep 3"
Example using backslash
>>> exec_notifier notify ls -l \| head
>>> exec_notifier notify ls -l \> output.txt
>>> exec_notifier notify ls -l \&\& sleep 3
Future
- Your own bot supportage will be added
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file exec-notifier-0.1.13.tar.gz
.
File metadata
- Download URL: exec-notifier-0.1.13.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1032-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b20ad1ebb5da2f88d22438cdf542829bf52f2813589014ebd89f8fb6fa74ba7 |
|
MD5 | d77687c3173165e21e042e5645ef0d77 |
|
BLAKE2b-256 | eb5683d8960bdeb021724cb8ee8eb30ddc5cace8427177455710c84787d40662 |
File details
Details for the file exec_notifier-0.1.13-py3-none-any.whl
.
File metadata
- Download URL: exec_notifier-0.1.13-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1032-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be1dac8d06916cbabd13466042f51fb948f72b08536ddc34fcbf1b176d31e86b |
|
MD5 | e57c55d62dbe31395444f92b608354bf |
|
BLAKE2b-256 | 9468babb296482846577a9012f4189b2516a0beac0bc163333d12e50c8ca3849 |