Both sides previous revisionPrevious revisionNext revision | Previous revision |
programming:python:cwrap [2012/02/19 01:49] – jay | programming:python:cwrap [2013/12/15 19:45] (current) – [Getting a Copy of it] jay |
---|
====== What is it? ====== | ====== cron-wrap ======= |
| |
| ===== What is it? ===== |
"Obviously, you're not a golfer". But you are probably a sysadmin. | "Obviously, you're not a golfer". But you are probably a sysadmin. |
| |
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. | 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. |
| |
====== Getting a Copy of it ====== | ===== Getting a Copy of it ===== |
If ''cron-wrap'' sounds like something you might be interested in, head over to the [[https://github.com/crustymonkey/cron-wrap|github page]] to download it, or clone the repository. | If ''cron-wrap'' sounds like something you might be interested in, head over to the [[https://github.com/crustymonkey/cron-wrap|github page]] to download it, or clone the repository. |
| |
====== Failures ====== | You can also install this via ''pip'' or ''easy_install''. |
| <code bash> |
| pip install cron-wrap |
| </code> |
| **NOTE:** The RPMs are **not** guaranteed to be the latest versions. Check [[https://github.com/crustymonkey/cron-wrap|Github]] to find out what the latest version is. That said, I will try and keep these up to date. |
| |
| {{:programming:python:cron-wrap-0.6.2-1.noarch.rpm|cron-wrap-0.6.2-1.noarch.rpm}} \\ |
| {{:programming:python:cron-wrap-0.6.2-1.src.rpm|cron-wrap-0.6.2-1.src.rpm}} |
| ===== Donations ===== |
| By no means should anyone feel they //have// to donate. However, if you've used this stuff to save some time, prevent head shaped holes in the wall, raise your children or you just think this is awesome and want to contribute to my [[http://www.surlybrewing.com/|Surly]] fund (that stuff isn't cheap, but it's soooooo good), you can click the [[http://paypal.com|Paypal]] donate button below and toss me a couple of dollars. I've heard from others who have donated that they were visited by flying monkeys that spoke Icelandic, and were subsequently showered with fantastic gifts from said monkeys. I don't know if this is true, or if drug use was involved, but it still sounds pretty awesome. |
| |
| <html> |
| <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> |
| <input type="hidden" name="cmd" value="_s-xclick"> |
| <input type="hidden" name="hosted_button_id" value="83ENX2ZV8E694"> |
| <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> |
| <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"> |
| </form> |
| </html> |
| ===== Failures ===== |
The concept of a failure is simple. The exit code of the script that cwrap.py is running must be non-zero for cwrap.py to call it a "failure". | The concept of a failure is simple. The exit code of the script that cwrap.py is running must be non-zero for cwrap.py to call it a "failure". |
| |
====== Options ====== | ===== Options ===== |
There are a plethora of options available here. See ''cwrap.py -h'' or ''man cwrap.py'' for the full lowdown. | There are a plethora of options available here. See ''cwrap.py -h'' or ''man cwrap.py'' for the full lowdown. |
| |
====== Example ====== | ===== Example ===== |
Here is a short example of how you would run a cron job with cwrap.py. | Here is a short example of how you would run a cron job with cwrap.py. |
| |