Results 1 to 4 of 4

Thread: Setting Scheduler under Windows

  1. #1
    domenico1983 is offline Senior Member
    Join Date
    Jun 2008
    Posts
    108

    Default Setting Scheduler under Windows

    Hi,

    could you post me the step for setting the scheduler under Windows?

    Kind regards,

    Domenico

  2. #2
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: Setting Scheduler under Windows

    This is from the documentation....


    Microsoft Windows (2000, XP, Server) Systems
    Set up the Windows batch file as follows:
    1.

    Create a batch file that will execute all the necessary commands.
    2.

    Enter the following paths in the batch file:


    cd c:\path\to\your\sugarinstance
    This folder should contain the cron.php file.


    c:\path\to\your\php.exe -c c:\windows\php.ini -f cron.php
    3.

    Run the batch file from a command prompt to ensure that the output has no errors.
    4.

    If you encounter problems, do the following:
    a.

    Determine which PHP binary to use based on your PHP version.
    PHP 4.x
    If your system has a 4.x version of PHP, the PHP-CGI binary is named php.exe and is typically located in the root folder of your PHP install folder. To allow it to interact with the dynamic libraries, specify the location of the php.ini file. This can vary from system to system. If you are unsure, assuming that php.exe is located in c:\php, enter the following command at the command prompt:
    c:\php\php.exe -r phpinfo();
    The system will identify the php.ini file and its location.
    PHP 5.x
    If your system has a 5.x version of PHP, the PHP-CGI binary is named php-cgi.exe (not php-cli.exe) and is typically located in the root folder of your PHP install folder. To allow it to interact with the dynamic libraries, specify the location of the php.ini file. This can vary from system to system. If you are unsure, enter the command described above.
    The system will identify the php.ini file and its location.
    5.

    Create the batch file.
    a.

    Click Scheduler in the Systems panel of the Admin page.
    At the bottom of the default screen, you will see the contents of the commands you need to add to a batch file.
    b.

    Open notepad.exe, copy and paste what Sugar’s recommendation into a blank file.
    c.

    Change the Save As Type to "dropdown to All Files *.*. " and save it as a .bat file.
    Note:

    This is only a recommendation. It may not work for your particular instance. Check the folder paths because they are often the cause for problems with the Scheduler.
    6.

    Test the batch file.
    a.

    From the command prompt, navigate to the folder where you saved the batch file.
    b.

    Enter the full name of the batch file to execute it.
    c.

    Note and correct any reported errors, usually related to paths that cannot be found.
    7.

    Create a scheduled task.
    a.

    Click Start and navigate to Control Panel/Scheduled Tasks/Add Scheduled Task.
    b.

    Go through the Wizard, browse to the batch file you just created, and select it.
    c.

    Schedule a daily job, and ensure that you select Open advanced properties for this task when I click finish.
    d.

    On the Advanced Properties page, navigate to the Schedule tab and then click Advanced.
    e.

    Check off Repeat task to enable the fields below it, and select Every Minute or specify the interval you think is appropriate.
    8.

    Save your changes and close the Wizard.
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  3. #3
    domenico1983 is offline Senior Member
    Join Date
    Jun 2008
    Posts
    108

    Default Re: Setting Scheduler under Windows

    Hi roblaus,

    I have yet followed the instructions..and I have setted the Scheduler..I think it is working..in fact the emails arrived and they are automatically checked! But I want to implement the feature of the automatic creation of a Case..and it doesn't work!

  4. #4
    layman99's Avatar
    layman99 is offline Senior Member
    Join Date
    Jan 2011
    Location
    Shimla
    Posts
    82

    Question Re: Setting Scheduler under Windows

    hello dear...
    thanx for this post link , i get helped a lot from your post. As now i am able to run my scheduler and the job present in _AddJobsHere.php , i am not able to get an idea how to run the zucker report function to run reports in this function.... Help me pls if u can....
    Dinesh Joshi
    sugarcrm CE 6.1.0
    joshishimla99@gmail.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 52
    Last Post: 2012-03-22, 06:27 PM
  2. Replies: 2
    Last Post: 2009-07-30, 05:48 PM
  3. Replies: 2
    Last Post: 2008-04-07, 05:28 PM
  4. Scheduler Dates Incorrect
    By mmakowski in forum Help
    Replies: 3
    Last Post: 2007-01-06, 06:52 AM
  5. Windows Scheduler
    By Proware in forum Help
    Replies: 1
    Last Post: 2006-05-03, 12:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •