{"repo":"WithoutCowards/tg_exec","free":true,"listed":false,"github":"https://github.com/WithoutCowards/tg_exec","clone":"git clone https://github.com/WithoutCowards/tg_exec.git","description":"Simple Telegram notifier for Linux commands — run any command, get a report in Telegram with execution time, exit code, and output.","language":"Go","stars":23,"topics":["alert","automation","bash","bot","cli","devops","golang","linux","monitoring","notifications"],"license":null,"category":"cli-tools","readme_excerpt":"🧰 tg-exec (Go) tg-exec - a lightweight CLI tool that runs any command and sends a Telegram notification when it finishes. 🇬🇧 English ✨ Features - 🕐 Report completion of any shell command - 💬 Send Telegram message on success or failure - 📄 Include command output (only on failure, or always if configured) - ⚙️ Support both global and per-user configuration - 🌍 Use system timezone (or custom via TIMEZONE / TG EXEC TZ ) - 🔁 Retry and exponential backoff if Telegram API fails - 🧩 Simple .conf configuration format - 🧑‍💻 Optional debug mode ( DEBUG=1 ) - 🔒 Free for personal and internal use (CC BY-NC 4.0) --- 🧱 Installation From .deb package Manual build --- ⚙️ Configuration Global config: /etc/tg-exec/config.conf User override: /.config/tg-exec/config.conf (has higher priority) --- 🧠 Environment Variables Variable Description Default ----------- ------------------------------------------------- ---------- TELEGRAM BOT TOKEN Bot token - TELEGRAM CHAT ID Chat ID (e.g. -123456 ) - TG NOTE Custom note (hostname or alias) hostname TG EXEC ALWAYS Always send message (1 = yes, 0 = yes, command output only on fail) 1 TG EXEC PARSE MODE Telegram parse mode HTML TG EXEC HTTP TIMEOUT API request timeout 10 TG EXEC RETRIES Retry attempts 3 TG EXEC BACKOFF Backoff interval (sec) 2 TG EXEC STRICT Exit on send failure 0 TG EXEC TZ Custom timezone system DEBUG Enable debug logs 0 --- 🧪 Usage Example Telegram message: Behavior matrix: ALWAYS Telegram message Output included :-------:","default_branch":null,"files":null,"tree":[],"storefront":"/r/WithoutCowards","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/WithoutCowards/tg_exec/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}