[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Cron does not work



> yep, I used crontab -e. It doesn't work. Is it because the crond daemon
> has failed? When I check using ps -ef | grep crond, I find that the
> daemon is still running.

..in memory. You need to restart crond after editing the file that crontab
executes unless crontab had been modified. This is all covered in man
cron.

>     I have a problem, I have set up a task as
>     a cronjob but it only works when I restart the
>     crond daemon in the /etc/rc.d/init.d/ directory.
>
>     The statement is:
>         * * * * * echo "Hello" >> /tmp/test.txt
>
>     When I restart crond, this works perfectly. But when I change
>     that statement to:
>         * * * * * echo "New Test" >> /tmp/test.txt
>
>     the cron does not read this new statement and continues executing the
>     old statement. Any help is appreciated.
>
>     Are you using crontab -e to change the statement?  That
>     should work.  But if you simply change the file with a text
>     editor, you will see the behavior your are talking about.

-- 
Keith Mastin
BeechTree Information Technology Services Inc.
Toronto, Canada
(416)429 9304




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]