Posts

Showing posts with the label cronjob

cronjob not starting

 check all logs files are created 05 00 3 11 * /secondary/backups/zmigrate/tz-23oct-to-3nov/diff.sh &> /home/sas/script/logs/tz-23oct-to-3nov/pngsldiff.log /home/sas/script/logs/tz-23oct-to-3nov/pngsldiff.log this log file was not created cronjob did not start for time error ask ai i want to set a cron to run once after 2 min server time is Mon Nov 3 00:05:04 IST 2025

cronjob

Find the running job: Run the following command to list active cron processes ps fauxww | grep -A 1 '[C]RON' Kill the process: Note the PID (the number next to the process) and stop it: kill PID on root crontab -l 23 14 5 1 * /bin/sh /idcdata/rathina/rathina.sh &> /idcdata/rathina/log.lo /idcdata/rathina su zimbra:zimbra -R /idcdata -rw-r--r-- 1 zimbra zimbra         33 Jan  5 13:49 email.txt -rw-r--r-- 1 zimbra zimbra          0 Jan  5 14:23 log.log -rwx------ 1 root   root          161 Jan  5 14:01 rathina.sh -rw-r--r-- 1 root   root   1759350144 Jan  5 14:27 rathina.singaravelan@zfindia.com.tgz [root@zimbra rathina]# cat rathina.sh #!/bin/bash for i in `cat /idcdata/rathina/email.txt`; do  /opt/zimbra/bin/zmmailbox -z -m $i getRestURL '/?fmt=tgz' > /idcdata/rathina/$i.tgz ;  echo $i ; done [root@zimbra rathina]...

cronjob not running on time

set same timezone for MySQL and PHP for MySQL change time zone in my.cnf default-time-zone = ‘+05:30’ and for PHP in the php.ini date.timezone = "Asia/Kolkata"