:Hi,
:
:I commented out my first line in crontab and saved it.
:When I took 'crontab -e' I found that it was removed.
:I tested it again. same behavior
:
:The first line ony gets removed if it starts with a #
:Is this accepted behavior?
:
:Thanks
:
:--Siju
It's inherited from the original cron edit code where it tries to
remove # template comments that it added to the original file.
It should probably just not touch the content at all. I've been
hit by this issue too where I comment out a crontab line that
happens to be at the top and cron deletes the commented line entirely.
-Matt
Matthew Dillon
<[email protected]>