I've got this in crontab : $this->bbcode_second_pass_code('', '* * * * * /home/user/scripts/checkcron.sh >> /home/user/log/cron/`echo $(date +"\%Y.\%m.\%d").cron.log` 2>&1')
checkcron.sh code: $this->bbcode_second_pass_code('', 'echo "Script run at: `date`" >> ~/croncheck.txt
echo "Script logged at: `date`"')
rc.d list shows that crond is set: STARTED][AUTO] crond.
I'm getting nothing in either /home/user/log/cron/2012.05.07.cron.log or /home/user/croncheck.txt
The files should generate automatically.
Directories are writable because the script run at commandline performs as expected:$this->bbcode_second_pass_code('', '/home/user/scripts/checkcron.sh >> /home/user/log/cron/`date +"%Y.%m.%d".cron.log` 2>&1')
I'm not sure why it's not running in cron. In fact right now, none of my scripts are running. So I've removed them all, and put just entered just this one cron job to diagnose the problem. No dice.
I have no cron.allow. Cron.deny is empty. Cron was working yesterday.
Any ideas?
EDIT: I rebooted. It seems to be working now. I'm not sure what caused cron to stop working properly. I'd be grateful for any input.