A cron job wrapper used to suppress output. #Cron job #Python wrapper #Suppress output #Cron #Job #Wrapper
“Obviously, you're not a golfer”. But you are probably a sysadmin.
The cron-wrap script is meant to be used as a wrapper for cron jobs. The idea here is that you use this script to wrap whatever would be a normal cronjob for you to perform functions based on what options are specified. I think this is best explained with an example.
I have a cronjob that runs every minute. First, I don't want “overlap”, a second instance is run while the first one is still running, if a single run takes a long time. Solved. The nature of my cronjob (just a script that is being run) is such that there will be an occasional failure, but an occasional failure, in this case, can be ignored. Instead, I only want to know when the script has failed 5 times in a row. Solved. By default, cwrap.py will also swallow all the output for the occasional fails, but I at least want a record of those failures so that I can determine whether the intermittent fails are happening more frequently and constitute a different problem. Solved (by turning on the syslog option).
This script may not be useful for everyone, but for some out there, it will save you a lot of time, effort and probably emails in your inbox.
Full documentation can be found in the man page or here: http://stuffivelearned.org/doku.php?id=programming:python:cwrap
System requirements
cron-wrap 0.5.0
add to watchlist add to download basket send us an update REPORT- runs on:
- Linux
- filename:
- cron-wrap-0.5.0.tar.gz
- main category:
- System
- developer:
- visit homepage
IrfanView 4.67
7-Zip 23.01 / 24.04 Beta
Zoom Client 6.0.0.37205
Windows Sandbox Launcher 1.0.0
paint.net 5.0.13 (5.13.8830.42291)
4k Video Downloader 1.5.3.0080 Plus / 4.30.0.5655
Microsoft Teams 24060.3102.2733.5911 Home / 1.7.00.7956 Work
Bitdefender Antivirus Free 27.0.35.146
calibre 7.9.0
ShareX 16.0.1
- Bitdefender Antivirus Free
- calibre
- ShareX
- IrfanView
- 7-Zip
- Zoom Client
- Windows Sandbox Launcher
- paint.net
- 4k Video Downloader
- Microsoft Teams