php - Crontab -e opens new file each time I run it - Ask Ubuntu


cronjob working couple of months, until mysteriously happened , stopped. checked under user , under root, , couldnt find cronjobs. interested in, when first started cronjob sudo crontab -e, file opened had lots of comments in it. each time hit command, same file cronjobs opened me. when run each time open different blank file:

/tmp/crontab.tpv8x6/crontab /tmp/crontab.fckvr2/crontab  etc.  

why happening? able open same file on again.

these temporary files created whilst crontab -e invoked (i.e. while editor still open). actual user crontabs kept in:

/var/spool/cron/crontabs 

so can check there crontabs expect exist. these files not supposed edited directly, should continue use crontab -e edit/update cron jobs. alternatively can edit global crontab at:

/etc/crontab 

which has 'user' field specify user under command should run.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User