Example
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
"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 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 cron@my_domain.com:
$ cronwrap -c "sleep 2" -t "1s" -e cron@my_domain.com
##Will send out an error alert to cron@my_domain.com:
$ cronwrap -c "blah" -e cron@my_domain.com
#Will not send any reports:
$ cronwrap -c "ls" -e cron@my_domain.com
#Will send a successful report to cron@my_domain.com:
$ cronwrap -c "ls" -e cron@my_domain.com -v
Metadata
Release files for cronwrap 1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cronwrap-1.4.tar.gz | 3.9 kB | Without provenance | Details for cronwrap-1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cronwrap-1.4-py2.6.egg | Legacy Egg format | - | - | Details for cronwrap-1.4-py2.6.egg |
Total release size: 8.2 kB
Release files / cronwrap-1.4.tar.gz
| Download URL | cronwrap-1.4.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3cd15ac755aad3d4023544585fd7b877cf93658a0e042c8416271e826d5fde9
|
|
BLAKE2b-256 checksum How to use checksums |
3a3d998f260fa00053cb55a6a4982ae216ca8b263b012f00e4917f738669f6dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / cronwrap-1.4-py2.6.egg
| Download URL | cronwrap-1.4-py2.6.egg |
|---|---|
| Size | 4.2 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
6b4b0e624e54b926b91deb970a4f436627717bfa7227401b59f9edfa4fca1bed
|
|
BLAKE2b-256 checksum How to use checksums |
ff577a828efb715988ce5c30e0acfd9735329aa0d9deee3efde1a6a15dbd50f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for cronwrap 1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.