cronjob script not running or working with crond

 # Set environment variables export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin


[root@linux ~]# timedatectl

               Local time: Wed 2024-11-27 22:53:53 IST


cronjob works with 24 hour system

sudo nano /etc/sysconfig/crond


EXTRA_OPTS="-L 5"


sudo systemctl restart cron

sudo tail -f /var/log/cron.log


/var/spool/cron/root


vi /etc/crontab


vi /etc/sysconfig/crond


Ensure the cron facility is being logged in /etc/rsyslog.conf or /etc/rsyslog.d/50-default.conf. Look for a line like this:


cron.*    /var/log/cron.log


sudo systemctl restart rsyslog

Comments

Popular posts from this blog

cpanel exam CPSP Answers

How to install zimbra collaboration suite 8.8.11 on CentOS 7

awstats installation