I have a problem, some user ,and I'm not sure who, on one of my servers wrote a cronjob that executes every night at midnight. The cronjob creates a sql dump of a database which is then grabbed by another server and gzipped.
The problem that I'm experiencing is that once that has occurred the file on the local system is no longer needed and I'd like to remove it in an hour or so. Which in, and of itself is not an issue but I don't know where to go to find the crontab for the person in question. Can anyone think of a way to find the cronjob from all the potential places that one could store a cronjob?
/var/log/cron
. Mycron
logs both the crontab file and the user who scheduled the job. – manatwork Sep 15 '11 at 15:25/etc/syslog.conf
(the actual name may slightly vary on the syslog implementation; thersyslog
I have usesrsyslog.conf
) says about wherecron
logs. On some systems it goes to/var/log/messages
. – manatwork Sep 15 '11 at 15:58