[cron] Root cron ib centos 6.3 doesn't work/
Hello, kind forum.
My os is: Code:
[root@livestreet var]# uname -a Code:
[root@livestreet var]# cat /etc/redhat-release After reading this doc ,I have added line to /etc/crontab: cat /etc/crontab Code:
# Example of job definition: Code:
[root@livestreet log]# tail /var/log/cron Code:
[root@livestreet log]# tail /var/log/messages In my /etc/anacrontab there is no cron.hourly task like in this thread. Is that correct? Code:
[root@livestreet etc]# cat /etc/anacrontab Is /etc/crontab a right place for editing root cron jobs? |
First of all, before editing such important file, do take backup of it, so in case of any pb, it can be restored (I hope you did that).
Well, in order to add a cron job, you need NOT to manually edit /etc/crontab file, but you can simply open it for editing using cmd: Code:
crontab -e To check already running cron jobs, invoke: Code:
crontab -l |
The answer is new line at the end of /etc/crontab.
Cron began to works after adding new line next to last job. |
All times are GMT -5. The time now is 09:49 PM. |