Crontab is disappearing whenever we edit it?

crontab -l 

no crontab for the is the error

the user is High privileged access account

What can be the root cause? Any suggestions where to check?

  • You've started with no crontab; what commands did you enter next in order to edit the crontab? – Jeff Schaller Nov 8 at 17:16
  • Is crond running ? Did you edit the crontab with crontab -e ? Could it be that you are confusing the system crontab with crontab of a user ? (Users, by default, have a empty crontab so in that case it's perfectly normal) – Garo Nov 8 at 19:46
  • I gave crontab -e and then saved it and when i checked , it disappeared .As a result of this the next jobs didnt run and we had a major issue . we have raised a case with redhat to see if there is an issue with the recent update .. Have anyone noticed such issues previously – Nikhil Nov 8 at 21:25
  • yes crond is up and running .. this user is our main user and all our jobs run with this user – Nikhil Nov 8 at 21:25
  • crontab -e uses a temporary file (but the changes are saved by cron) so it's perfectly normal that the file disappeared. Did you add a cronline (in the correct cron-syntax) ? No cronlines = no crontab – Garo Nov 8 at 21:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.