Re: cron problems

From: Michael de'OZ 1566860084 (deoz_at_observ.univ.kiev.ua)
Date: 04/25/05


Date: Mon, 25 Apr 2005 17:32:06 +0000 (UTC)

al881@hotmail.com wrote:

> 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
> script.

> 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


Relevant Pages

  • Re: Query regarding cron jobs
    ... The script is getting executed a few times when scheduled through cron ... The probability of successful execution is 6/10. ... showing any entries crontab -l as the entry in /etc/cron.d is for root ...
    (RedHat)
  • Re: Query regarding cron jobs
    ... The script is getting executed a few times when scheduled through cron ... The probability of successful execution is 6/10. ... showing any entries crontab -l as the entry in /etc/cron.d is for root ...
    (RedHat)
  • SUMMARY: cron entry: nth day of every month?
    ... cron can not handle this with its own syntax. ... 21st but "command" only runs if the output of the "date" command ... What I would suggest is rather than embedding the logic in each script ... The answer is it is _not_ possible to control it only with crontab ...
    (Tru64-UNIX-Managers)
  • Re: Cron Jobs
    ... > having a cron will mean yo server is forced by the script ... > best than allowing mail dequeing by connection. ... > host server so I can get emails for my domain example.com. ...
    (RedHat)
  • [Solved] Long cronjobs terminate after 2 minutes/Ubuntu 8.10
    ... When I run the script in the foreground, it takes about 2 hours to ... Have you got your system set up so that cron sends mail to ... I configured Postfix for local mail only and updated ... I'm assuming that configuring the MTA is what did it. ...
    (Ubuntu)