{"repo":"cdzombak/runner","free":true,"listed":false,"github":"https://github.com/cdzombak/runner","clone":"git clone https://github.com/cdzombak/runner.git","description":"Lightweight wrapper for better cron jobs and containers","language":"Go","stars":18,"topics":["cron","email","containers","retry","logging","discord","logs","monitoring","ntfy"],"license":"LGPL-3.0","category":"deployment-docker-iac","readme_excerpt":"runner : a lightweight wrapper for cron jobs and containers runner runs a program, capturing its output (from both standard output and standard error) and printing it to standard output only if the program fails. The output can also be printed if the program produces, or does not produce, a specific string (see -print-if-match and -print-if-not-match ). As of Runner 2.0.0, output can always be printed regardless of program exit status, with the -always-print option. If the program failed, or its output would otherwise be printed, runner can also: - email the program's output, if provided with an SMTP server and credentials - send a notification via ntfy - send a notification to a Discord webhook, with the program output attached as a log file - send a summary notification to a Slack webhook Output is optionally written to a log directory, regardless of program exit status. If runner is run as root or with CAP SETUID and CAP SETGID , the target program can be run as a different user. On Linux 5.6+, if run with CAP SYS PTRACE , runner can redirect its output to file descriptors of your choice belonging to a different process. This is useful in some containerization situations. To use this feature, the container must be run with --cap-add CAP SYS PTRACE . Use Cases Cron The core runner logic (capturing and discarding program output) is useful when running a program via cron, when you only want to see its output, typically via email, in case of failure or when specific outputs oc","default_branch":null,"files":null,"tree":[],"storefront":"/r/cdzombak","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cdzombak/runner/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."}