PDA

View Full Version : [ubuntu] Lost cron



bzarr
July 21st, 2009, 04:11 PM
I'm trying to find a failing cron job, but doing the following is returning '... Is a directory'


sudo cat /var/spool/cron/crontabs

I know there is a cron trying to run as there is new mail every 5 minutes saying it's failed!

Please help

llamabr
July 21st, 2009, 04:56 PM
edit your cron job with this command:


crontab -e

amingv
July 21st, 2009, 04:56 PM
That's because it is a directory.

Try:

sudo ls /var/spool/cron/crontabs/

or


sudo cat /var/spool/cron/crontabs/root #or whatever user it is you want to manage