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 the SuSE /etc/crontab the entry to run the cron.{hourly,daily,monthly,weekly} scripts is coded as:

-*/15 * * * * root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons >/dev/null 2>&1

Notice that the very first character of the specification is a dash character (-), and this is NOT a typo.

Can somebody explain what the time spec '-*/15' means?

BTW, the stuff seems to be running fine.

Thanks

share|improve this question

1 Answer 1

up vote 6 down vote accepted

It says the following in the man page for the crontab file (man 5 crontab):

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

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.