Results 1 to 2 of 2

Thread: scheduler .bat file for cron.php syntax

  1. #1
    rdyar is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    10

    Default scheduler .bat file for cron.php syntax

    I am having trouble getting my scheduler.bat file to run the cron.php. I have posted info on my problem in the installation forum, but in the meantime I'm wondering if rather than answer my question, what i would really like to know and what i think would help others is what is the correct syntax for building the bat file? what is required, what is optional, and when? for instance, some of the example i have seen have a "-c" in them, others don't. what is "-c" and when do you need it?

    also, i have seen one with a semi colon after the first line - is this required? what about quotes around the path - i have to use them in mine because the path has a space in it i think, but i'm not really sure where the quotes go... around the path only i believe.

    another thing i am confused by (i'm a php/command line nEWB) is the change directory command - cd - is it only neccessary on the first line?

    I have seen bat file examples that had 2 paths in them - one on the first line, one on the second line, and i have seen ones with 3 paths in them - one on the first line, and two on the second line. I think the first line is to tell it to cd to the directory where the cron.php file is located (is there a semi-colon after this?), then the second line tells the path to the php.exe file, followed sometimes by -c and then the path to the php.ini file, followed by -f cron.php... if the php.exe file and the php.ini file are in the same location, do you have to give them both?

    I have read the wiki and faqs posts, and have searched and read all posts with "cron" in them from the last few months but still can't get it to work... and none of those posts really dealt much with syntax, and some of them had conflicting information from my standpoint.

  2. #2
    rdyar is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    10

    Default Re: scheduler .bat file for cron.php syntax

    fixed my initial problem, see this post:
    http://www.sugarcrm.com/forums/showt...ed=1#post73549

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: 2006-04-18, 02:47 PM
  3. Fail to setup the batch file (for Scheduler)
    By mrjewelchu in forum General Discussion
    Replies: 1
    Last Post: 2006-03-23, 07:07 AM
  4. Replies: 3
    Last Post: 2006-02-17, 05:12 PM
  5. PATCH: HTML Emails and Templates
    By funkypenguin in forum Downloads
    Replies: 2
    Last Post: 2005-05-31, 10:14 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
  •