Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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.

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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