Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We're getting emails from Cron Daemon telling us the follwing message:

Could not open input file: /var/www/vhosts/justhome.co/httpdocs/cron.php

The reason why it cannot open the input file is the domain is no longer there... it has been deleted.

Where would I be able to find the file that is referencing the old domain? I've had a dig through the etc folder for cron jobs but can't see anything obvious relating to it.

We are running Centos and Plesk on a dedicated server.

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

User crontabs are usually found in /var/spool/cron you may find what you're looking for in one of them.

Don't edit the user crontab file directly, use the

sudo crontab -u user -e

command. If you want to delete the user's crontab use

sudo contab -u user -r

This ensures that the cron daemon knows what's been changed.

share|improve this answer
    
Perfect, thanks! :) –  Vince Pettit Sep 12 '11 at 16:33
add comment

Take a look at /var/spool/cron/ folder.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.