OS X: How to track down and kill a cron job. Or something.
November 14, 2009 3:09 PM
Subscribe
OS X Unix filter: Please help me find and delete an obsolete cron job on an iMac running Leopard.
I'm doing tech support for a small office. A previous provider setup a cron job or something to create an rsync backup to a MacMini server every day at the same time. The backup configuration has changed, but this one job keeps trying to run. I can't find the script to delete it and am getting a bit frustrated.
I've tried
crontab -e - which shows an empty crontab.
I've looked in StartupItems, looked in /usr/bin/, usr/sbin/ for a compiled script, looked in the logs to see if I could see the source of the job, but it doesn't log to system.log or console.log. I did find the log that was set up for the backup, but it doesn't say the path of the original script. I know it's running because it was set up to also send an email to the office administrator. She gets a failure message daily.
I'm pretty sure it's not a LaunchDaemon, as the job was set up by someone who was using old-style tools, and all of the LaunchDaemons I could find were stock OS X.
Any idea how I can track this thing down and kill it for good?
Thanks!
posted by al_fresco to computers & internet (13 comments total)
1 user marked this as a favorite
sudo crontab -e
which by virtue of executing as the superuser will bring up the root crontab. Good luck.
posted by Salvor Hardin at 3:13 PM on November 14, 2009