Results 1 to 2 of 2

Thread: Fail to setup the batch file (for Scheduler)

  1. #1
    mrjewelchu is offline Junior Member
    Join Date
    Mar 2006
    Posts
    1

    Default Fail to setup the batch file (for Scheduler)

    Hi,

    On the "Schedule List" tab page, the below instruction are shown for successfulling using the Schedulers Funtion:


    To Setup Windows Scheduler
    Create a batch file with the following commands:
    cd C:\Program Files\SugarCRM\httpd\htdocs\SugarCRM
    php.exe -f cron.php


    But, I fail to excute the "php.exe -f cron.php" during testing at command prompt. Then, I found there is no "php.exe" located in this folder - "Program Files\SugarCRM\httpd\htdocs\SugarCRM". So, I think this's the reason.

    Can anyone advise me to solve this problem?

    OS environment:
    Chinese Traditional Windows XP SP2
    SugarCRM version: 4.2 beta


  2. #2
    rliebscher is offline Sugar Community Member
    Join Date
    Nov 2005
    Location
    Germany, Karlsruhe
    Posts
    111

    Default Re: Fail to setup the batch file (for Scheduler)

    Hi,

    try this code in your batch file;

    if u use php 5.xx
    @echo off
    cd h:\Inetpub\wwwroot\SugarCRM
    c:\php\php-win.exe -f cron.php

    if u use php 4.xx
    @echo off
    cd h:\Inetpub\wwwroot\SugarCRM
    c:\php\php.exe -f cron.php

    change c:\php\ to the folder of your php-installation.

    Ronny

    PS: php.exe is always located in the php.programm-folder
    and this folder should be part of your path-environmentvariable, so u can call php.exe from everywhere.

Thread Information

Users Browsing this Thread

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

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
  •