Can I use the C++/Java-style /* */ syntax to multi-line comments in the crontab file?

link|improve this question
feedback

1 Answer

up vote 11 down vote accepted

The only comment character allowed in a crontab file is #. So you need to do:

# This is line 1
# This is line 2
0 0 * * * /usr/bin/magiccronjob

Edit: I believe it's man 5 crontab to see the details about crontab syntax.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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