Node reporting time twice at the top of the hour

Hi all,

My node is reporting the time twice at the top of the hour. I did something wrong. Please let me know if this why. What is the best way to fix.

8:00 PM VA4SMC : PWD=/home/VA4SMC ; USER=root ; COMMAND=/usr/sbin/asterisk -rx ‘rpt cmd 57666 status 12 xxx’
8:00 PM pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
8:00 PM root : PWD=/root ; USER=root ; COMMAND=/usr/sbin/asterisk -rx ‘rpt cmd 57666 status 12 xxx’
8:00 PM (VA4SMC) CMD (/etc/asterisk/local/saytime.sh)
8:00 PM (root) CMD (/etc/asterisk/local/saytime.sh)

Looks like both your user and the root user are executing saytime.sh at 8PM. Did you set this up using crontab?
Each user has their own crontab. If you execute sudo crontab -e then you are editing the crontab for the root user. If you execute crontab -e then it is just for your user. Can you make sure that you don’t have the command in both places?

I will check both but yes I did use sudo crontab -e to edit the cron. Thanks for replying. I tried checking the crontab using /var/spool/cron/crontabs but it said permission denied.

Yep that was the problem. Thanks encbar5.