Dedicated Indexer Auto logoff (OpenInsight 32-bit Specific)
At 18 DEC 2008 03:38:14AM Simon G Wilmot wrote:
Hiya,
When using the dedicated indexer with a front end window, during the 'pause' between sweeps, is there a way to hook into a routine to auto-logoff if a certain time has been reached …
TIA
Simon
At 18 DEC 2008 08:58AM Dave Harmacek wrote:
While the windows of the dedicated workstation is in the CREATE event:
call showOpenEngine(1)
seconds=60 ;*whatever delay you deem sufficient
call Set_Bgnd_IX_TIME( seconds)
call Set_IDXSvr(1)
*setup for logout this evening
itime=iconv( '23:45','MT')
if time() lt itime then
cmd=SHUTDOWN': @fm: @fm: '23:45'foo=Set_Property('SYSTEM', 'IDLEPROC', cmd)end
Subroutine SHUTDOWN( arg)
declare function Utilitycall Set_IDXSvr(0)call Set_Bgnd_IX_Time(0)call delay(30) ;*waiting for indexing process to finish (maybe not needed)call Yield()x=Utility("DESTROY", "SYSTEM")return
Dave
At 18 DEC 2008 09:09AM Simon G Wilmot wrote:
Hi Dave,
Thanks for that - I had delved around a few other posts and help texts and came across pretty muchn the same solution.
Thanks,
Simon