Re: cron problems
From: Michael de'OZ 1566860084 (deoz_at_observ.univ.kiev.ua)
Date: Mon, 25 Apr 2005 17:32:06 +0000 (UTC)
> My server is a Linux RedHat VPS. (Virtual Private Server).
> Anyways, I wrote a script for the /etc/cron.hourly section,
> but figured out later that I messed up and then I removed the
> However, cron still thinks that it needs to run this and seems to
> have cached it away. How do i inform cron that this script
> is not to be used anymore?
> The bad part of the script that I wrote was that it was checking
> for processes that have gone down. Well I wrote it wrong and
> it keeps trying to kill my httpd daemon every 5 seconds and loops
> endlessly for about an hour.
> This is happending every 4AM.
> All I did was place a file named watch_processes in the
> /etc/cron.hourly directory.
> I have temporarily stopped cron since I can't have my httpd down
> for too long.
> Why does cron think that this material still needs to be run?
> thanks in advance,al
use crontab command to add a task,
and add a command crontab -r in your script when this task no need to run again
-- Michael T. Pogoreltsev, Astronomical observatory (044) 2162391, Observatorna st. 3, Kiev 04053