Kayako logo
SupportSuite, eSupport and LiveResponse Discussion, troubleshooting and feedback related to Kayako's flagship support desk products SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
warsky Offline
New Member
 
Posts: 16
Join Date: Aug 2006
cron not working - 20-10-2006, 10:12 AM

I'm having a **** of a time getting the psuedo cron to work correctly. I'm on win server 2003. First, my understanding is that is will run scheduled tasks as users browse the system, but it seems to only do so when staff members access the staff area. Next, I have windows scheduler running this:

C:\xxxxxx\php.exe -f c:\inetpub\xxxx\xxx\staff\index.php

It says its running successfully and the log in the supportsuite admin panel says it got run, but email parsing simply is not occuring unless a staff member browses the staff or admin panel.

What's up? The only reason I know tickets are coming in is that I have the email copied to my regular mailbox.
   
Reply With Quote
  (#2) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,852
Join Date: Aug 2006
Location: Mumbai, India
20-10-2006, 12:40 PM

psuedo cron runs only when we access the Staff or Admin CP. For the software to execute the cron on regular basis, you will have to set a task scheduler as explained in the manual.



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#3) Old
warsky Offline
New Member
 
Posts: 16
Join Date: Aug 2006
23-10-2006, 09:05 AM

My apologizes for the use of the h word.

What is the difference between what I did (calling php to execute your script) and using the wget program? I'd prefer not to install more software than necessary. Plus the supportsuite task log shows that it is executing. Its just not doing anything to retrieve the emails.
   
Reply With Quote
  (#4) Old
Racked Hosting Offline
Member
 
Posts: 353
Join Date: Mar 2006
Location: Manipal
24-10-2006, 12:10 AM

Quote:
Originally Posted by warsky
My apologizes for the use of the h word.

What is the difference between what I did (calling php to execute your script) and using the wget program? I'd prefer not to install more software than necessary. Plus the supportsuite task log shows that it is executing. Its just not doing anything to retrieve the emails.
You do need to run a cron to fetch the emails.

*/5 * * * * root /usr/bin/lynx –dump “http://www.domain.com/support/cron/index.php?_t=parser” > /dev/null
   
Reply With Quote
  (#5) Old
warsky Offline
New Member
 
Posts: 16
Join Date: Aug 2006
25-10-2006, 12:31 AM

Sorry but I'm on Windows Server 2003.
   
Reply With Quote
  (#6) Old
Racked Hosting Offline
Member
 
Posts: 353
Join Date: Mar 2006
Location: Manipal
25-10-2006, 04:29 AM

Quote:
Originally Posted by warsky
Sorry but I'm on Windows Server 2003.
Much easier Just setup a scheduled task.

C:\xxxxxx\php.exe -f c:\inetpub\xxxx\support\cron\index.php?_t=parser

Last edited by Racked Hosting; 25-10-2006 at 04:36 AM.
   
Reply With Quote
  (#7) Old
warsky Offline
New Member
 
Posts: 16
Join Date: Aug 2006
28-10-2006, 07:57 AM

Actually, that doesn't work. Either the windows command parser or the php parser doesn't like the ?_t=parser at the end. So, in order to get it to work, I made a copy of index.php in the cron and then modified it so it started the parser cron directly. I wasn't sure if this file was used for other scheduling so I made sure to make a copy and pointed the scheduler to it. The mod to the file was to simply comment out most of the code inside the big if leaving:

PHP Code:
if (defined("USESHUTDOWNFUNC") && == 2)
{
        
$_SWIFT["crontitle"] = "parser";  //$_REQUEST["_t"];
        
register_shutdown_function(array(&$cron"runTask"));
} else {
        
$_SWIFT["crontitle"] = "parser";   // $_REQUEST["_t"];
        
$cron->runTask();

The other trick was getting security set right. The user that runs this schedule item runs under had to have execute permissions in the php directory and read permissions all the way from ...\cron down to c:\.

Thanks for the help!
   
Reply With Quote
  (#8) Old
Racked Hosting Offline
Member
 
Posts: 353
Join Date: Mar 2006
Location: Manipal
28-10-2006, 08:38 AM

sorry, I never tried it out on windows though I did try running cron by setting _t=parser. If I am correct, it's only used for mail queues.
   
Reply With Quote
Reply

Tags
cron

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Feb. 9 built: Live chat not working in Mac kami SupportSuite, eSupport and LiveResponse 0 09-02-2007 01:38 PM
cron for auto close? sgwebb SupportSuite, eSupport and LiveResponse 2 10-04-2006 05:18 AM
SLA not working on 3.00.32 smvtech SupportSuite, eSupport and LiveResponse 0 28-02-2006 12:22 AM
Cron Jobs, Piping, NO Luck - Any Assitance Appreciated breamteam E-mail Piping Issues 0 22-11-2005 05:08 PM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47