About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
  • License: Freeware
  • Last update: 6 years ago
  • Total downloads: 137
  • Price: Free |
  • Operating system: Linux
  • Publisher: amix (2 other programs)
See full specifications

linux default iconcronwrap Publisher's description

cronwrap is a simple Python script that can improve your cron jobs.

cronwrap is a simple Python script that can improve your cron jobs. It offers following features:

* ability to send emails ONLY when errors happen. cron sends an email if a command outputs anything (which leads to massive spamming). Another problem with cron is that only stdout is sent (makes debugging difficult).
* ability to send emails if a command runs for too long.

Installing cronwrap

$ sudo easy_install cronwrap
$ cronwrap -h


Will email a timeout alert to cron@my_domain.com:

$ cronwrap -c "sleep 2" -t "1s" -e cron@my_domain.com

Will email an error alert to cron@my_domain.com, since the command crashes:

$ cronwrap -c "blah" -e cron@my_domain.com

Will not email any reports since it's a successful run:

$ cronwrap -c "ls" -e cron@my_domain.com

Will email a successful report to cron@my_domain.com, because verbosity is turned on:

$ cronwrap -c "ls" -e cron@my_domain.com -v

Help and usage:

$ cronwrap -h
usage: cronwrap [-h] [-c CMD] [-e EMAILS] [-t TIME] [-v [VERBOSE]]

A cron job wrapper that wraps jobs and enables better error reproting and
command timeouts.

optional arguments:
-h, --help show this help message and exit
-c CMD, --cmd CMD Run a command. Could be `cronwrap -c "ls -la"`.
-e EMAILS, --emails EMAILS
Email following users if the command crashes or
exceeds timeout. Could be `cronwrap -e
"johndoe@mail.com, marcy@mail.com"`. Uses system's
`mail` to send emails. If no command (cmd) is set a
test email is sent.
-t TIME, --time TIME Set the maxium running time.If this time is passed an
alert email will be sent.The command will keep running
even if maxium running time is exceeded.The default is
1 hour `-t 1h`. Possible values include: `-t 2h`,`-t
2m`, `-t 30s`.
-v [VERBOSE], --verbose [VERBOSE]
Will send an email / print to stdout on succefull run.


System Requirements:

No special requirements.
Program Release Status:
Program Install Support: Install and Uninstall

cronwrap Tags:

Click on a tag to find related softwares

Is cronwrap your software?

Manage your software

Most Popular

linux default icon GDB 7.4
GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it... Read more
linux default icon Coral 0.9.1
Coral is a tool and a development platform to create and transform models and modeling languages.
linux default icon Forum Paid Plus Script 6.1
Forum Paid Pay Per Post Exchange is targeted at forum owners who wish to...
linux default icon sdo 0.6.5
Converts oracle SDO_GEOMETRY objects to WKT and GeoJSON.
linux default icon Get Paid Plus Script 6.1
Get Paid Plus Script

Related Category

» Other (877)
» Tools & Editors (359)
» Web Development (146)