Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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

Project Description

Basic example of usage:

##Will print out help
$ cronwrap -h

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

    A cron job wrapper that wraps jobs and enables better error reporting 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
                            ","`. Uses system's
                            `mail` to send emails. If no command (cmd) is set a
                            test email is sent.
      -t TIME, --time TIME  Set the maximum running time.If this time is passed an
                            alert email will be sent.The command will keep running
                            even if maximum 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 successful run.

##Will send out a timeout alert to
$ cronwrap -c "sleep 2" -t "1s" -e

##Will send out an error alert to
$ cronwrap -c "blah" -e

#Will not send any reports:
$ cronwrap -c "ls" -e

#Will send a successful report to
$ cronwrap -c "ls" -e -v
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
cronwrap-1.4-py2.6.egg (4.2 kB) Copy SHA256 Checksum SHA256 2.6 Egg Apr 11, 2011
cronwrap-1.4.tar.gz (3.9 kB) Copy SHA256 Checksum SHA256 Source Apr 11, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting