| cronrun - convenience features to run commands in task scheduler environment |
cronrun - convenience features to run commands in task scheduler environment
cronrun [OPTIONS] <COMMAND> [ARGS]
Run COMMAND in a way most scheduled jobs are intended to run, ie:
Delay program execution at most TIME amount of time. Default is to wait nothing. Also can be set by CRONRUN_DELAY environment.
TIME is a series of AMOUNT and UNIT pairs after each other without space, ie:
I<AMOUNT> I<UNIT> [ I<AMOUNT> I<UNIT> [ I<AMOUNT> I<UNIT> [...] ] ]
Where UNIT is s, m, h, d for seconds, minutes, hours, days respectively.
Example: 1h30m
A single number without UNIT is seconds.
Wait for the lock to release.
By default cronrun(1) fails immediately if locked.
Lock is based on CRONJOBID environment, or COMMAND if CRONJOBID is not set.
If CRONJOBID is set, STDIO goes to syslog too, in the "cron" facility, stdout at info level, stderr at error level.
If not set, STDIO is not redirected.
Lock files stored in this directory.
Recommended practice is to set CRONJOBID=something in your crontab before each cronrun ... job definition.
Set value for the --random-delay option.