Job Manager (How to set up)

The Job Manager allows you to execute scheduled tasks at a specified time, or at specified intervals.

Examples of available jobs are: Import Cleanup Job, Currency Rates Update Job, Address Geocode Update Job. There is also special job called Monitor Job, which monitors the execution of the other jobs. In case they get stuck (IE reach maximum allowed time for execution), Monitor Job will kill them, mark them as failed, create a notification message for the super admin user, and, depending on the job level, send an email to the administrator (for critical jobs).

If you click into the Job Manager admin page, you will see a list of available jobs, their statuses, last run time, recommended execution frequency, option to rerun a job again from admin screen (if failed) etc. Below is sample how this admin screen may look in your instance.

From the screenshot, you can see that none of jobs have yet run. The reason for this is because the cron needs to be manually to set up to run the jobs on Linux, or to set Scheduled Tasks on Windows.

If you are using Linux or Windows, you have to set up a cronjob or schedule tasks manually.

How to setup cronjobs on Linux.

We will use zurmoc command line tool.

If we suppose that ZurmoCRM is installed under: /home/zurmo/public_html folder, you will need to add the following commands to cron:

*/5 * * * * cd /home/zurmo/public_html/app/protected/commands && ./zurmoc jobManager  super Monitor &> /dev/null
30 4 * * * cd /home/zurmo/public_html/app/protected/commands && ./zurmoc jobManager  super CurrencyRatesUpdate &> /dev/null
30 2 * * 6 cd /home/zurmo/public_html/app/protected/commands && ./zurmoc jobManager  super ImportCleanup &> /dev/null
*/30 * * * * cd /home/zurmo/public_html/app/protected/commands && ./zurmoc jobManager  super AddressGeocodeUpdate &> /dev/null

From the commands above, you can see that we set up the Monitor Job to run every 5 minutes, CurrencyRatesUpdate once per day, at 4:30 AM, ImportCleanupJob every Saturday at 2:30 AM, and AddressGeocodeUpdateJob every 30 minutes.

How to setup cronjobs on Windows XP/2003.
With Scheduled Tasks, you can schedule any script, program, or document to run at a time that is most convenient for you. Scheduled Tasks starts every time that you start Windows XP and runs in the background, and it starts each task that you schedule at the time that you specify when you create the task.

To open Scheduled Tasks, click Start, click All Programs, point to Accessories, point to System Tools, and then click Scheduled Tasks.

To schedule a new task:
Double-click Add Scheduled Task to start the Scheduled Task Wizard, and then click Next in the first dialog box.
The next dialog box displays a list of programs that are installed on your computer, either as part of the Windows XP operating system, or as a result of software installation. Click on Browse, and find path to zurmoc.bat(which is located under public_html/app/protected/commands) .

Select how often you want task to be run, click “Next” and specify the information about the day and time to run the task, and then click “Next”.

Type the name and password of the user who is associated with this task. Make sure that you choose a user with sufficient permissions to run the program. By default, the wizard selects the name of the user who is currently logged on.
Click ‘Next’, and then click Finish after you verify the choices that you have made.

Once you finished changes, if you want to run task few times per day, right click on task name, then click on “Properties” and after that on “Schedule” and on “Advanced Settings”, check “Repeat task” button, and set how often you want to run it(for example every 5 minutes).

Below is cronjob code that can be used to set all Zurmo jobs for Zurmo version 1.6. You might need to edit this file, depending on your system settings.

# *    *    *    *    *  command to be executed
# -    -    -    -    -
# ¦    ¦    ¦    ¦    ¦
# ¦    ¦    ¦    ¦    ¦
# ¦    ¦    ¦    ¦    +----- day of week (0 - 7) (0 or 7 are Sunday, or use names)
# ¦    ¦    ¦    +---------- month (1 - 12)
# ¦    ¦    +--------------- day of month (1 - 31)
# ¦    +-------------------- hour (0 - 23)
# +------------------------- min (0 - 59)

#
# Set PATH, otherwise restart-scripts won't find start-stop-daemon
#
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
zurmo_install_path="/PATH/TO/YOUR/ZURMO/INSTALLATION"
zurmo_commands_path="$zurmo_install_path/app/protected/commands"

#run these every minute
* * * * * cd "$zurmo_commands_path" && ./zurmoc jobManager  super EmailArchiving &> /dev/null
* * * * * cd "$zurmo_commands_path" && ./zurmoc jobManager  super ProcessOutboundEmail &> /dev/null

#run these every 2 minutes
*/2 * * * * cd "$zurmo_commands_path" && ./zurmoc jobManager  super Export &> /dev/null

# run these every 5 Minutes
*/5 * * * * cd "$zurmo_commands_path" && ./zurmoc jobManager  super Monitor &> /dev/null

# run these every 15 Minutes
*/15 * * * * cd "$zurmo_commands_path" && ./zurmoc jobManager super AutoresponderMessageInQueue &> /dev/null ; ./zurmoc jobManager super ByTimeWorkflowInQueue &> /dev/null

# run these every 30 minutes
*/30 * * * * cd "$zurmo_commands_path" && ./zurmoc jobManager  super AddressGeocodeUpdate &> /dev/null

# run these every hour
5 * * * * cd "$zurmo_commands_path" && ./zurmoc jobManager  super AutoresponderMessageInQueue &> /dev/null

#run these once a day, early in the morning
30 3 * * * cd "$zurmo_commands_path" && ./zurmoc jobManager  super TestOutboundEmail &> /dev/null
30 4 * * * cd "$zurmo_commands_path" && ./zurmoc jobManager  super CurrencyRatesUpdate &> /dev/null
30 5 * * * cd "$zurmo_commands_path" && ./zurmoc jobManager  super ClearSentNotificationsEmail &> /dev/null
30 6 * * * cd "$zurmo_commands_path" && ./zurmoc jobManager  super WorkflowValidityCheck &> /dev/null

# run these on saturday morning
35 2 * * 6 cd "$zurmo_commands_path" && ./zurmoc jobManager  super ImportCleanup &> /dev/null
35 3 * * 6 cd "$zurmo_commands_path" && ./zurmoc jobManager  super ExportCleanup &> /dev/null
35 4 * * 6 cd "$zurmo_commands_path" && ./zurmoc jobManager  super CheckZurmoUpdates &> /dev/null
35 5 * * 6 cd "$zurmo_commands_path" && ./zurmoc jobManager  super JobLogCleanup &> /dev/null

Leave a Comment

  • Czarsir

    Can I do the job without a specific OS ?

  • Jason Green

    What OS are you using? It will work on windows or linux.

    • Mr. Anderson

      Jason I am trying to get this running on Win Server 2008. Unfortunately the article isn’t real clear about what arguments need to be specified for Windows. It says:

      ” Click on Browse, and find path to zurmoc.bat”

      Running the bat with no arguments does nothing and I can’t seem to find the proper syntax/arguments ANYWHERE in the forums. A little help please?

      Also a feature request, from the Jobs Manager why not have a link to “run now” for any given job. Would certainly help in setup/troubleshooting.

      • http://www.facebook.com/people/Ray-Stoeckicht/100001473956853 Ray Stoeckicht

        Did you view this screencast: http://zurmo.org/screencasts/understanding-the-job-manager

        We have Developer Sessions every Tuesday at 10:00AM Chicago Time (http://zurmo.org/forums/index.php?/calendar/). You can always join an upcoming session and ask any questions to our technical team.

        • Mr. Anderson

          I did. I have looked at every screencast and every forum post I could find, none which answer the question. I realize running on IIS7.5 is the red-headed step child to many but it’s what I have to work with. Zurmo is running fine on IIS but the question of syntax/arguments for running jobs is not well explained here. Honesty it’s pretty clunky to have to schedule a cron job to SEND email from the platform.

          • http://www.facebook.com/people/Ray-Stoeckicht/100001473956853 Ray Stoeckicht

            Perhaps you can join the Dev Session tomorrow and we can chat about it (Tuesday at 10:00AM Chicago Time (http://zurmo.org/forums/index.php?/calendar/)

          • http://leanitsupport.com Val Lusis

            Have you figured it out how to run jobs on Win Server 2008? Please let me know.

      • NoName

        arguments > jobManager super Export
        start in > C:serverapachehtdocszurmoappprotectedcommands

  • René Villegas

    I have used the crontab command in Ubuntu to add the above lines, but it doesn’t work.
    In the Job Manager Settings page, the status is always “Not Running” and the log has’t information.
    Some suggestion?

    • Ivica Nedeljkovic

      Have you setup correct paths in cronjob? Can you check cronjob logs to ensure that those commands run?
      You can try run those php commands manually, from command line, so you will know if the problem is with cronjobs or with php command line scripts.

    • http://twitter.com/dwightwalker Dwight Walker

      To get log, remove “> /dev/null 2>&1″ which puts error message into bit bucket (null).

      Every time the cron job runs, root will get an email.

  • Andreas

    Linux crontab entry
    line 2 and 3, hours and minutes have to be switched.
    in crontab, minutes come first.

    • Ivica Nedeljkovic

      Correct, thanks for reporting this issue.

  • Andreas

    and you need to use ./zurmoc as the command, because zurmoc isn’t in the path

    • Ivica Nedeljkovic

      Correct, I fixed article.

  • http://twitter.com/dwightwalker Dwight Walker

    I put the cron job in Ubuntu in:
    /etc/cron.d/zurmo

  • Aleksandr Jadov

    My hosting provider only allows to run .php as cron job.
    Any suggestions on how to get around this stupid limit?
    exec and shell_exec disabled

    • Ray Stoeckicht

      Sometimes, it is difficult to run Zurmo on certain hosting providers. Perhaps we can discuss this further on the Dev Session. We have Developer Sessions every Tuesday at 10:00AM Chicago Time (http://zurmo.org/forums/index.php?/calendar/event/2-developer-learning-session/). Come join the session in 45 minutes.

      • etilyeti

        @aleksandrjadov:disqus, @raystoeckicht:disqus, did you guys find a solution?

        • Ray Stoeckicht

          Find a solution to what?

          • Edward

            On how to use CRON JOB when hosting probider allows to run .php as cron only?

  • bobo

    There is an insanely easy way to set up cron job: http://www.easycron.com

    • Edward

      How do you use with Zurmo?

      • paulfeakins

        You can’t really.

  • Gund4m

    SHELL=/bin/sh
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
    zurmo_commands_path=”/ABSOLUTE/PATH/TO/ZURMO/app/protected/commands”

    * * * * * env > /tmp/env.output
    #run these every minute
    * * * * * cd “$zurmo_commands_path” && ./zurmoc jobManager super EmailArchiving &> /dev/null
    * * * * * cd “$zurmo_commands_path” && ./zurmoc jobManager super ProcessOutboundEmail &> /dev/null

    #run these every 2 minutes
    */2 * * * * cd “$zurmo_commands_path” && ./zurmoc jobManager super Export &> /dev/null

    # run these every 5 Minutes
    */5 * * * * cd “$zurmo_commands_path” && ./zurmoc jobManager super Monitor &> /dev/null
    */5 * * * * cd “$zurmo_commands_path” && ./zurmoc jobManager super EmailBounce &> /dev/null

    # run these every 15 Minutes
    #*/15 * * * * cd “$zurmo_commands_path” && ./zurmoc jobManager super AutoresponderMessageInQueue &> /dev/null ; ./zurmoc jobManager super ByTimeWorkflowInQueue &> /dev/null
    */15 * * * * cd “$zurmo_commands_path” && ./zurmoc jobManager super AutoresponderQueueMessagesInOutbox &> /dev/null ; ./zurmoc jobManager super ByTimeWorkflowInQueue &> /dev/null
    */15 * * * * cd “$zurmo_commands_path” && ./zurmoc jobManager super WorkflowMessageInQueue &> /dev/null

    # run these every 30 minutes
    */30 * * * * cd “$zurmo_commands_path” && ./zurmoc jobManager super AddressGeocodeUpdate &> /dev/null

    # run these every hour
    #5 * * * * cd “$zurmo_commands_path” && ./zurmoc jobManager super AutoresponderMessageInQueue &> /dev/null
    5 * * * * cd “$zurmo_commands_path” && ./zurmoc jobManager super AutoresponderQueueMessagesInOutbox &> /dev/null
    5 * * * * cd “$zurmo_commands_path” && ./zurmoc jobManager super CampaignGenerateDueCampaignItems &> /dev/null ;
    5 * * * * cd “$zurmo_commands_path” && ./zurmoc jobManager super CampaignMarkCompleted &> /dev/null ;
    5 * * * * cd “$zurmo_commands_path” && ./zurmoc jobManager super CampaignQueueMessagesInOutbox &> /dev/null ;

    #run these once a day, early in the morning
    30 3 * * * cd “$zurmo_commands_path” && ./zurmoc jobManager super TestOutboundEmail &> /dev/null
    30 4 * * * cd “$zurmo_commands_path” && ./zurmoc jobManager super CurrencyRatesUpdate &> /dev/null
    30 5 * * * cd “$zurmo_commands_path” && ./zurmoc jobManager super ClearSentNotificationsEmail &> /dev/null
    30 6 * * * cd “$zurmo_commands_path” && ./zurmoc jobManager super WorkflowValidityCheck &> /dev/null

    # run these on saturday morning
    35 2 * * 6 cd “$zurmo_commands_path” && ./zurmoc jobManager super ImportCleanup &> /dev/null
    35 3 * * 6 cd “$zurmo_commands_path” && ./zurmoc jobManager super ExportCleanup &> /dev/null
    35 4 * * 6 cd “$zurmo_commands_path” && ./zurmoc jobManager super CheckZurmoUpdates &> /dev/null
    35 5 * * 6 cd “$zurmo_commands_path” && ./zurmoc jobManager super JobLogCleanup &> /dev/null
    THIS IS THE SOLUTION: http://zurmo.org/forums/index.php?/topic/1721-cron-job-and-marketing-campaign-solved/

  • nonmaskable_developer

    How can i add a new job in job manager, i have a module which will sync google calendar entries. I want this to be performed as scheduled event after every 5 minutes.

    What i need to do so that my job appear in job manager

  • franklinian

    [Linux tip] In case anyone didn’t catch this, the user you need to reference in the crontab is a Zurmo super administrator, NOT a linux user with administrative privileges (not even ‘root’). Spun my wheels for a while on this.

  • franklinian

    [Linux tip] In case anyone didn’t catch this, the user you need to reference in the crontab is a Zurmo super administrator, NOT a linux user with administrative privileges (not even ‘root’). Spun my wheels for a while on this.

  • CaptSaltyJack

    I’d like to point out that the cd “$zurmo_commands_path” won’t work, at least not on Ubuntu 12.04 Server it doesn’t. The actual full path must be typed there. Also, if this cron script is to be placed in /etc/cron.d, a user MUST be specified, e.g.:

    */15 * * * * www-data cd /path/to/zurmo/commands && ./zurmoc ….etc

    The user can only be omitted from a user crontab, not the system-wide cron.d directory.

    • Marek Ivan

      Hi.

      I came to the same conclusion on Debian, user has to be added and full path to the scripts needs to be entered (as variables are not working as you described. Here is what works for me with all the recommended times. (I have set it up just now, so I’ll see in a couple of days if everything is really working (but the frequent ones are so far).

      Regards

      Marek
      ____________________________________________________________________________

      #run these every minute

      * * * * * your_user cd /var/www/your.domain.com/web/app/protected/commands && ./zurmoc jobManager super ProcessOutboundEmail &> /dev/null

      #run these every 2 minutes

      */2 * * * * your_user cd /var/www/your.domain.com/web/app/protected/commands && ./zurmoc jobManager super Export &> /dev/null

      # run these every 5 Minutes

      */5 * * * * your_user cd /var/www/your.domain.com/web/app/protected/commands && ./zurmoc jobManager super Monitor &> /dev/null

      */5 * * * * your_user cd /var/www/your.domain.com/web/app/protected/commands && ./zurmoc jobManager super EmailArchiving &> /dev/null

      */5 * * * * your_user cd /var/www/your.domain.com/web/app/protected/commands && ./zurmoc jobManager super EmailBounce &> /dev/null

      # run these every 15 Minutes

      */15 * * * * your_user cd /var/www/your.domain.com/web/app/protected/commands && ./zurmoc jobManager super ByTimeWorkflowInQueue &> /dev/null && ./zurmoc jobManager super ByTimeWorkflowInQueue &> /dev/null

      */15 * * * * your_user cd /var/www/your.domain.com/web/app/protected/commands && ./zurmoc jobManager super WorkflowMessageInQueue &> /dev/null && ./zurmoc jobManager super ByTimeWorkflowInQueue &> /dev/null

      #run these every 10 Minutes

      */10 * * * * your_user cd /var/www/your.domain.com/web/app/protected/commands && ./zurmoc jobManager super ReadPermissionSubscriptionQuickUpdate &> /dev/null && ./zurmoc jobManager super ByTimeWorkflowInQueue &> /dev/null

      # run these every 30 minutes

      */30 * * * * your_user cd /var/www/your.domain.com/web/app/protected/commands && ./zurmoc jobManager super AddressGeocodeUpdate &> /dev/null

      # run these every hour

      5 * * * * your_user cd /var/www/your.domain.com/web/app/protected/commands && ./zurmoc jobManager super AutoresponderMessageInQueue &> /dev/null

      10 * * * * your_user cd /var/www/your.domain.com/web/app/protected/commands && ./zurmoc jobManager super CampaignGenerateDueCampaignItems &> /dev/null

      15 * * * * your_user cd /var/www/your.domain.com/web/app/protected/commands && ./zurmoc jobManager super CampaignMarkCompleted &> /dev/null

      20 * * * * your_user cd /var/www/your.domain.com/web/app/protected/commands && ./zurmoc jobManager super CampaignQueMessagesInOutbox &> /dev/null

      #run these once a day, early in the morning

      30 3 * * * your_user cd /var/www/your.domain.com/web/app/protected/commands && ./zurmoc jobManager super TestOutboundEmail &> /dev/null

      30 4 * * * your_user cd /var/www/your.domain.com/web/app/protected/commands && ./zurmoc jobManager super CurrencyRatesUpdate &> /dev/null

      30 5 * * * your_user cd /var/www/your.domain.com/web/app/protected/commands && ./zurmoc jobManager super ClearSentNotificationsEmail &> /dev/null

      30 6 * * * your_user cd /var/www/your.domain.com/web/app/protected/commands && ./zurmoc jobManager super WorkflowValidityCheck &> /dev/null

      35 5 * * * your_user cd /var/www/your.domain.com/web/app/protected/commands && ./zurmoc jobManager super JobLogCleanup &> /dev/null

      35 7 * * * your_user cd /var/www/your.domain.com/web/app/protected/commands && ./zurmoc jobManager super ReadPermissionSubscriptionComprehensiveUpdate &> /dev/null

      # run these on saturday morning

      35 2 * * 6 your_user cd /var/www/your.domain.com/web/app/protected/commands && ./zurmoc jobManager super ImportCleanup &> /dev/null

      35 3 * * 6 your_user cd /var/www/your.domain.com/web/app/protected/commands && ./zurmoc jobManager super ExportCleanup &> /dev/null

      35 4 * * 6 your_user cd /var/www/your.domain.com/web/app/protected/commands && ./zurmoc jobManager super CheckZurmoUpdates &> /dev/null

  • Mike Wright

    Hi All,

    Struggling a little with this – my host only allows for 3 cron jobs – I need to set the code above as a single script to run as a scheduled task on my Linux host:

    */5 * * * * cd /home/zurmo/public_html/app/protected/commands && ./zurmoc jobManager super Monitor &> /dev/null
    30 4 * * * cd /home/zurmo/public_html/app/protected/commands && ./zurmoc jobManager super CurrencyRatesUpdate &> /dev/null
    30 2 * * 6 cd /home/zurmo/public_html/app/protected/commands && ./zurmoc jobManager super ImportCleanup &> /dev/null
    */30 * * * * cd /home/zurmo/public_html/app/protected/commands && ./zurmoc jobManager super AddressGeocodeUpdate &> /dev/null

    My question is – how do I save the above as a script – in what format?

    Sorry to be a bit dim – this is a little above my pay grade :)

    Many thanks,

    Mike

    • Mike Wright

      Ive saved the above code as a ‘.pl’ file and changed the paths accordingly. The script appears to run – but returns nothing.

      I am simply trying to get workflow notifications to run correctly. Is it really this difficult or am I missing something obvious (which is possible).

      Thanks,

      Mike

      • Mike Wright

        I’ve saved the code as a Perl script (assuming it is Perl) the following should work?:

        */5 * * * * cd /usr/bin/perl/home/sites/wrightplace.co.uk/public_html/zurmo/app/protected/commands && ./zurmoc jobManager super Monitor &> /dev/null

        30 4 * * * cd /usr/bin/perl/home/sites/wrightplace.co.uk/public_html/zurmo/app/protected/commands && ./zurmoc jobManager super CurrencyRatesUpdate &> /dev/null

        30 2 * * 6 cd /usr/bin/perl/home/sites/wrightplace.co.uk/public_html/zurmo/app/protected/commands && ./zurmoc jobManager super ImportCleanup &> /dev/null

        */30 * * * * cd /usr/bin/perl/home/sites/wrightplace.co.uk/public_html/zurmo/app/protected/commands && ./zurmoc jobManager super AddressGeocodeUpdate &> /dev/null

        Testing the script in my CPanel Scheduled tasks returns nothing. So i have no automation of the jobs at all.

        Any response or suggestions would be most appreciated.

        Cheers,

        Mike

        • wmike1503

          Very disappointed that my questions have had a zero response. I tried very hard to get this to work. Currently, I have no automation of the stuff that needs to run automatically.

          Is there a working solution?

          Again – asking to attend developer sessions isn’t helpful – I am not a developer – attended one session – most above my head.

          ?????

          Mike

  • ris3r09

    maybe i am missing something in all that i have read about the jobmanager. i am on windows and i setup the task manager as specified. I can clearly see that the task manager is running. all i want to do is export the contacts.

    is there more to the setup? i have watched the screencast and it explains what the job manager is and how it works but there is little information on what to do on windows.

    can you help me just to get the task manager to do an export. what other files i would need to edit, what i would need to add etc.

  • http://opsisllc.com Ted Dargis

    Ok, I’m a little dense so I needed to get all the other forum posts together to get cron working for me. The following script works perfectly with Zurmo 2.6.5 on CentOS 6.5.

    Some of the gotchas posted above and elsewhere:

    1. You don’t need an entry in “/etc/cron.d”. Don’t edit “/etc/crontab” directly. Instead, as root, do “crontab -e” and paste the below script in. Save and do “crontab -l” to see that the script is correct.

    2. I had to replace the script variables with absolute paths. You’ll see that in the below script.

    3. Don’t forget to modify the absolute path for your environment and “super” for your Zurmo superuser if it was changed at installation.

    4. Execute “service crond restart” to reread the script, then “tail /var/log/cron” to ensure it started without errors.

    Hope this helps someone and isn’t redundant.

    ############################

    SHELL=/bin/sh
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

    #run these every minute
    * * * * * cd /var/www/html/zurmo/app/protected/commands && ./zurmoc jobManager super EmailArchiving &> /dev/null
    * * * * * cd /var/www/html/zurmo/app/protected/commands && ./zurmoc jobManager super ProcessOutboundEmail &> /dev/null

    #run these every 2 minutes
    */2 * * * * cd /var/www/html/zurmo/app/protected/commands && ./zurmoc jobManager super Export &> /dev/null

    # run these every 5 Minutes
    */5 * * * * cd /var/www/html/zurmo/app/protected/commands && ./zurmoc jobManager super Monitor &> /dev/null

    # run these every 15 Minutes
    */15 * * * * cd /var/www/html/zurmo/app/protected/commands && ./zurmoc jobManager super AutoresponderMessageInQueue &> /dev/null ; ./zurmoc jobManager super ByTimeWorkflowInQueue &> /dev/null

    # run these every 30 minutes
    */30 * * * * cd /var/www/html/zurmo/app/protected/commands && ./zurmoc jobManager super AddressGeocodeUpdate &> /dev/null

    # run these every hour
    5 * * * * cd /var/www/html/zurmo/app/protected/commands && ./zurmoc jobManager super AutoresponderMessageInQueue &> /dev/null

    #run these once a day, early in the morning
    30 3 * * * cd /var/www/html/zurmo/app/protected/commands && ./zurmoc jobManager super TestOutboundEmail &> /dev/null
    30 4 * * * cd /var/www/html/zurmo/app/protected/commands && ./zurmoc jobManager super CurrencyRatesUpdate &> /dev/null
    30 5 * * * cd /var/www/html/zurmo/app/protected/commands && ./zurmoc jobManager super ClearSentNotificationsEmail &> /dev/null
    30 6 * * * cd /var/www/html/zurmo/app/protected/commands && ./zurmoc jobManager super WorkflowValidityCheck &> /dev/null

    # run these on saturday morning
    35 2 * * 6 cd /var/www/html/zurmo/app/protected/commands && ./zurmoc jobManager super ImportCleanup &> /dev/null
    35 3 * * 6 cd /var/www/html/zurmo/app/protected/commands && ./zurmoc jobManager super ExportCleanup &> /dev/null
    35 4 * * 6 cd /var/www/html/zurmo/app/protected/commands && ./zurmoc jobManager super CheckZurmoUpdates &> /dev/null
    35 5 * * 6 cd /var/www/html/zurmo/app/protected/commands && ./zurmoc jobManager super JobLogCleanup &> /dev/null
    #################################

    • http://opsisllc.com Ted Dargis

      Again, note that the third and fourth variable lines of the script can be deleted.

  • http://www.bankcircle.in BankCircle

    syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM
    in /home/******/public_html/zurmo/app/protected/core/components/WebApplication.php
    on line 176

    I’m having php 5.3.28

  • http://leanitsupport.com Val Lusis

    Do I have to “find a path” to zurmoc.bat or is it actually the file that
    I have to select in the Task Scheduler? I looked at zurmoc.bat file –
    it’s almost empty. Do I need to run it every 5 minutes?

    The cronejob code at the end of “How to setup cronjobs on Windows XP/2003.” section, where do I put it? Plus slashes used seem to be the wrong ones for Windows…

    This article is not specific; it looks that way with all setup articles.

    It is very difficult to reach out telepathically into developer minds and
    see how everything has been designed. A half finished / unclear articles
    are not helping at all.

    Reading all the posts, it looks that
    everyone here is on their own to try and figure out what somebody else
    has created. Without a proper communication it is not going to work.

    There is no complete installation document to be found, just bits and pieces, hints, and half finished articles…

    Very disappointed to say the least…

  • http://leanitsupport.com Val Lusis

    Even my post has disappeared…

  • http://devprocb.com/ DEVPROCB

    for anyone on a cpanel server trying to setup up these cron jobs as this was extremely difficult to figure out for something so simple. Simply editing crontab -e instead of editing the cron tab through the path resolved this issue instantly

  • http://devprocb.com/ DEVPROCB

    For Everyone Having Issues with the windows Install here you go:

    Find Zurmoc.bat in your protected commands folder. Edit the file (notepad). It will say say “PHP_COMMAND=php.exe” change php.exe to the location where php.exe exists on your server/computer . Save the file

    In the same folder create a new file. Open notepad.

    Example in Bat:

    @ECHO OFF
    START zurmoc jobManager super ByTimeWorkflowInQueue
    START zurmoc jobManager super WorkflowMessageInQueue

    //END EXAMPLE <— do not copy

    Save the file as YOURNAME.bat – in dropdown of save as select "all files"

    The @echo tells windows to not open a CMD window every time the bat runs.

    open the windows task scheduler

    Create a Task

    Under Triggers Select Daily – Under Advanced Settings Repeat task daily, for a duration indefinitely then push ok

    Under actions select new then select browse. Find your bat file that you created and click it.

    In the Start In Box type in the full path of where your zurmo commands folder is

    push ok

    Under General Select Run where user is logged on or not. Name the task and give a description. Push Save, it will ask you for your password type it in.

    Do this for every zurmo command you need

  • Philip

    In the Job Manager section are listed 23 jobs. Is it really necessary to setup a separate CronJob for each of them or does Zurmo offer a simpler solution?

  • Giovanni Coa

    Marketing emails do not start.
    I’ve to run jobs manually from the control panel in Zurmo.
    I followed the article but without success.

  • Vishwajeet Yadav-patil

    Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home1/yaduinbo/public_html/wphew.com/crm/app/protected/core/components/WebApplication.php on line 188

    I checked php version, it is 5.4.*
    Anyone have a same problem and solution to run cron job ?(hostgator)

  • Nic

    I am trying to set-up Zurmo 3.1.0 on a Linux server. As the comments here are 2-3 years old I would really appreciate it if someone could provide instructions for adding the Cron jobs.

    I imagine that some will have changed from previous versions and that there will be more of them.

    Many thanks.

  • Ben

    Will you guys update the cron job list? It’s still for 1.6 and many options are missing…

  • Arvind Subramanian

    */5 * * * * cd /opt/bitnami/apps/zurmo/htdocs/app/protected/commands && ./zurmoc jobManager user Monitor &> /dev/null
    30 4 * * * cd /opt/bitnami/apps/zurmo/htdocs/app/protected/commands && ./zurmoc jobManager user CurrencyRatesUpdate &> /dev/null
    30 2 * * 6 cd /opt/bitnami/apps/zurmo/htdocs/app/protected/commands && ./zurmoc jobManager user ImportCleanup &> /dev/null
    */30 * * * * cd /opt/bitnami/apps/zurmo/htdocs/app/protected/commands && ./zurmoc jobManager user AddressGeocodeUpdate &> /dev/null
    0 */1 * * * cd /opt/bitnami/apps/zurmo/htdocs/app/protected/commands && ./zurmoc jobManager user AutoresponderQueueMessagesInOutbox &> /dev/null
    0 */1 * * * cd /opt/bitnami/apps/zurmo/htdocs/app/protected/commands && ./zurmoc jobManager user CampaignGenerateDueCampaignItems &> /dev/null
    0 */1 * * 6 cd /opt/bitnami/apps/zurmo/htdocs/app/protected/commands && ./zurmoc jobManager user CampaignMarkCompleted &> /dev/null
    0 */1 * * * cd /opt/bitnami/apps/zurmo/htdocs/app/protected/commands && ./zurmoc jobManager user CampaignQueueMessagesInOutbox &> /dev/null
    0 22 * * * cd /opt/bitnami/apps/zurmo/htdocs/app/protected/commands && ./zurmoc jobManager user ClearSentNotificationsEmail &> /dev/null
    */5 * * * * cd /opt/bitnami/apps/zurmo/htdocs/app/protected/commands && ./zurmoc jobManager user EmailArchiving &> /dev/null
    */5 * * * 6 cd /opt/bitnami/apps/zurmo/htdocs/app/protected/commands && ./zurmoc jobManager user EmailBounce &> /dev/null
    */1 * * * * cd /opt/bitnami/apps/zurmo/htdocs/app/protected/commands && ./zurmoc jobManager user ProcessOutboundEmail &> /dev/null
    0 22 * * * cd /opt/bitnami/apps/zurmo/htdocs/app/protected/commands && ./zurmoc jobManager user TestOutboundEmail &> /dev/null
    5 18 * * 6 cd /opt/bitnami/apps/zurmo/htdocs/app/protected/commands && ./zurmoc jobManager user DraftEmailTemplateCleanup &> /dev/null
    5 18 * * 6 cd /opt/bitnami/apps/zurmo/htdocs/app/protected/commands && ./zurmoc jobManager user ExportCleanup &> /dev/null
    5 18 * * 6 cd /opt/bitnami/apps/zurmo/htdocs/app/protected/commands && ./zurmoc jobManager user CheckZurmoUpdates &> /dev/null
    0 * */1 * * cd /opt/bitnami/apps/zurmo/htdocs/app/protected/commands && ./zurmoc jobManager user JobLogCleanup &> /dev/null
    0 */1 * * 6 cd /opt/bitnami/apps/zurmo/htdocs/app/protected/commands && ./zurmoc jobManager user UpdateModelsLatestActivityDateTimeByMeeting &> /dev/null
    */15 * * * * cd /opt/bitnami/apps/zurmo/htdocs/app/protected/commands && ./zurmoc jobManager user ByTimeWorkflowInQueue &> /dev/null
    */15 * * * * cd /opt/bitnami/apps/zurmo/htdocs/app/protected/commands && ./zurmoc jobManager user WorkflowMessageInQueue &> /dev/null
    0 22 * * * cd /opt/bitnami/apps/zurmo/htdocs/app/protected/commands && ./zurmoc jobManager user WorkflowValidityCheck &> /dev/null
    */10 * * * * cd /opt/bitnami/apps/zurmo/htdocs/app/protected/commands && ./zurmoc jobManager user ReadPermissionSubscriptionUpdate &> /dev/null
    5 18 * * 6 cd /opt/bitnami/apps/zurmo/htdocs/app/protected/commands && ./zurmoc jobManager user ShortUrlCleanup &> /dev/null
    */5 * * * * cd /opt/bitnami/apps/zurmo/htdocs/app/protected/commands && ./zurmoc jobManager user SendGridEmailEvents &> /dev/null

  • ikosan holako