I am attempting to get some crontabs to work. I installed zurmo (zurmo.org) on a test server with Ubuntu 12.04 and had everything working, even the crontabs. I then reinstalled Zurmo on a different ubunut server and can no longer get them to work. I copied and pasted them from the original server and then just changed the username.
I originally followed this guide
http://zurmo.org/wiki/how-to-set-up-job-manager
After having a bunch of problems I simplified it and tried just one of the Zurmo commands, I then added a test cron job to see how it would work, as you can see below.
current settings using "crontab -e" - none of these work
Code:
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
*/1 * * * * cd /home/justin/zurmo/app/protected/commands && ./zurmoc jobManager super Monitor &> /dev/null
*/1 * * * * echo "Cron Worked2 $(date)" >> cd /home/justin/zurmo/app/protected/commands/cronworked.txt
I had originally added a test line like this
Code:
*/1 * * * * echo "Cron Worked2 $(date)" >> /tmp/cronworked.txt
That code worked, it created the "cronworked.txt" file and placed the echo command in it.
So my thought is somehow the cron job isn't working within the user (justin) account.
I have done a chomd 777 on /home/justin/zurmo/app/protected/commands
Anyone have any ideas? I'm running out of options.
Bookmarks