[ic] IC Jobs & timed-build

Stefan Hornburg (Racke) racke at linuxia.de
Thu Feb 3 07:30:09 UTC 2011


On 02/02/2011 11:02 PM, Sam Batschelet wrote:
>
> On Feb 2, 2011, at 4:32 PM, Paul Jordan wrote:
>
>>
>>
>>> From: sbatschelet at mac.com
>>> I am looking to generate a bunch of static search result pages using time-build. But I want [timed-build force=1 file=pages/mypage.html ] to be initiated using IC Jobs via Cron. Anything wrong with this idea? Input is appreciated.
>>
>>
>> I suppose if visitors are not using cookies, that they could loose their session, because the generated pages won't have the session in the links (if any) on the page.
>>
>> Although, I bet you could create a results page that used a<form>, then [included] your static results into it, with thoughtfully creafted form elements.... maybe? This way, all the intesive work (query executions?) are already done - assuming that is what you are trying to avoid.
>
> Right I think that will take a little trial and error but could be do-able.  But for now I can't seem to get the timed build to work.
>
> catalog.cfg
>
> Jobs<<EOJ
> 	base_directory	jobs
> 	suffix			.job
> 	log				var/log/cron.log
> 	email			sbatschelet at mac.com
> 	subject			Interchange results for job: %s
> EOJ
>
> catroot/jobs/icjobs/test.jobs
>
> [timed-build force=1 file=pages/testpage.html]
> Built at [time]%c[/time].
> [/timed-build]
>
> called as interchange user via interchange --quiet --runjobs=catalog_name=icjobs
>
> nothing in cron.log or logs ?

I never tried to use [timed-build] in an Interchange job, so it might not work. You
can also take a look at the [capture-page] tag.

Regards
	Racke

-- 
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team




More information about the interchange-users mailing list