The crontab file was opened in write mode but in the case where no monitor is defined it would leave an empty file.