Support forums

   
 
cron job path problem with ee template to call xmlgrab  
Posted: 27 July 2010 03:45 PM —   [ Ignore ]  
Newbie
Rank
Total Posts:  2
Joined  2010-07-27

Hi there,

I’m having trouble setting up a cron job on an ee template that calls the data for xmlgrab.
I’d like the cron job to refresh the page every minute.

Example of command is below.

Min   H   DM   M   DW   Command
*  *  *  *  *  /usr/bin/lynx -dump “http://mydomain.co.uk/myTemplates/myScript/”

The problem that i’m having is that the cron job is pointing to the virtualised directory within expression engine.

There isn’t an actual directory on my server called ‘myTemplates’, and as such the cron job cannot find the script with the template ‘myScript’ to run it.

The script within the template ‘myScript’ has to be within EE as it contains EE code.

I’m guessing thia is a pretty common situation and would appreciate some pointers.

Cheers
Peter

Profile
 
 
Posted: 27 July 2010 05:10 PM —   [ Ignore ]   [ # 1 ]  
Administrator
RankRankRankRank
Total Posts:  182
Joined  2006-04-12

Hi Peter,

Thanks for your post.

If you can access the webpage http://mydomain.co.uk/myTemplates/myScript/ ok through a web browser, then cron should work ok - the directory shouldn’t have to exist (unless I’m misunderstanding the problem).

Andrew

Profile
 
 
Posted: 27 July 2010 05:28 PM —   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  2
Joined  2010-07-27

Hi Andrew

Thanks for your reply.

My bad.

It’ll only work when the system is turned on - I assumed that it will run the cron when the system is turned off.

Great plugin btw.

Cheers
P

Profile
 
 
   
 
 

‹‹ Special Characters in XML title

Select A Theme