Cronwrap 2.0 review

Download
by rbytes.net on

Cronwrap is a utility that offers more control over the execution of a cron job than the standard cron daemon allows. Cronwrap pro

License: GPL (GNU General Public License)
File size: 14K
Developer: Scott Hamilton
0 stars award from rbytes.net

Cronwrap is a utility that offers more control over the execution of a cron job than the standard cron daemon allows.

Cronwrap project can ensure and report that the job completes within a specified time period. It can email and/or log any output produced from the job. It reports on the exit status of the job.

This was developed at the University of Wollongong to manage the email output
from scheduled jobs with cron.

Installation:

Just type "make" and put the cronwrap binary into the file system where you can run it.

Options:

-s < subject >
Subject of any email that is sent after running this job.

-r < recipient > [,< recipient > ...]
Comma seperated list of email addresses who will be sent any mail resulting from the job.

-t < timeout secs >
The number of seconds this job is expected to complete within. _c_r_o_n_w_r_a_p will report via email if the job execution exceeds this time. The default is 900 seconds
(15 minutes).

-l < log file >
Specifies a path to a log file. Messages relating to the command are written here.

-L < log file >
Specifies a path to a log file. The content of the file is mailed to the specified recipient (or root) and the file is zeroed.

-k
Terminate the job if it runs longer than the value specified with -t. A SIGTERM will be sent to the job followed by a SIGKILL after 5 seconds.

-o
Ignore any output on standard out from the job. Normally any output is captured and reported via email.

-e
Ignore any output on standard error from the job. Normally any output is captured and reported via email.

-x n
Do not report on the exit status if it is this value n. This option can be specified multiple times. An exit status of 0 is always ignored.

-V
Print version number and exit.

< cmd > [< cmd args > ...]
The job that will be executed and monitored by cronwrap.

What's New in This Release:
Signal handling is more portable.
An option to control the nice value of the job has been added.
An option to specify a jitter time before executing the job has been added.

Cronwrap 2.0 keywords