Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
CSIDE and OScript
How can have a script run periodically (sat every 5 minutes)?
ATHANASSIOS_FAMELIARIS
Hello all!Is there a way to have a request handler called at a specified period of time? This is critical for my work and any help will be greatecty appreciated! Thank in advance!Yiannos
Find more posts tagged with
Comments
eLink User
Message from Nair, Krishnankutty N. via eLinkisn't that what a livelink agent does.execute code at any time interval.If you are on oracleyou can take a look at the agent schedule table and you can see for userid=1000 all the agentsthat ot runs.You can define your own agent by direct db update or by looking at the agent ospace.Acompletely running example called customagent gives you the flexibility of the gui also.put whatver code you want into the examples execute method.If you just wanted your request handler you could also schedule it true windows sched jobs or true unixksh fashion also.-----Original Message-----From: eLink Discussion: Livelink Builder Discussion[mailto:componentbuilder@elinkkc.opentext.com]Sent: Sunday, January 22, 2006 7:14 AMTo: eLink RecipientSubject: How can have a script run periodically (sat every 5 minutes)?How can have a script run periodically (sat every 5 minutes)?Posted by FAMELIARIS, ATHANASSIOS on 01/22/2006 08:09 AMHello all!Is there a way to have a request handler called at a specified period of time? This is critical for my work and any help will be greatecty appreciated! Thank in advance!Yiannos[To reply to this thread, use your normal E-mail reply function.]============================================================Discussion: Livelink Builder Discussion
https://knowledge.opentext.com/knowledge/livelink.exe/open/765419Livelink
Server:
https://knowledge.opentext.com/knowledge/livelink.exeTo
Unsubscribe from this Discussion, send an e-mail to unsubscribe.componentbuilder@elinkkc.opentext.com.
John_Shoun
It is possible to schedule request handlers or any function within the Livelink server. I don't believe it is documented anywhere, but it is fairly easy to add this type of functionality.Go look in the /scripts directory on your server. The agent_run.e makes a template for writing new scripts that will run the required handler. You can then make this script load and run on a given schedule by updating the OPENTEXT.INI.For example we had a periodic process at one time to force recaching of the rights table:Go to the loader section and add a new agent ---[loader]load=sockserv;agents;notify;rightscacheThen add a new section to schedule the script ---[rightscache]lib=.\bin\lljob.dllname=lljobprio=criticaltimeout=5000info=.\config\opentext.ini;rightscacheStartScript=.\scripts\llfull.lxeJobScript=.\scripts\rights_cache.eCRON=0,5,10,15,20,25,30,35,40,45,50,55 * * * *SleepIntervalSec=3600You can either schedule it to occur at a given interval or at specific times using the CRON schedule.