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

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

share|improve this question

1 Answer 1

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.

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.