In crontab you can specify ranges using hyphens (e. g. "0-15").

But recently I've seen an entry like this:

-*/15 * * * * command

What does hyphen plus an asterisk mean in this entry?

link|improve this question

50% accept rate
feedback

1 Answer

up vote 1 down vote accepted

Argh, looks like it's an extension. Should've read this man page until the end.

If the uid of the owner is 0 (root), he can put a "-" as first character of a crontab entry. This will prevent cron from writing a syslog message about this command getting executed.

link|improve this answer
What version of cron? What distribution? – Dennis Williamson Feb 17 '10 at 5:49
@Dennis Williamson, ISC cron 4.1 – Alex B Feb 19 '10 at 3:43
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.