monitoring - Trying to monitor filemaker -


so trying monitor whether filemaker infinite-loop script running. best way?

i noticed filemaker not spawn new process when background script runs checking processes or threads out of question.

my current solution involves checking ui "script paused" sub-window in filemaker client kind of flaky. there better ways check. filemaker not seem have support such checks.

filemaker version: 14.0 pro

edit: maybe, should have been more clear. trying monitor via monitoring tools such as, zabbix. have external (powershell) script checks filemaker.

if insist on continuing use infinitely looping script, here's how indicate script running in filemaker 13+:

  • each time loop executes, update global variable current timestamp (set variable [ $$_last_loop_executed ; ( currenttimestamp ) ]).
  • add text layout. text going show when script's loop executed recently.
  • edit "hide object when" calculation (found on "data" tab of info panel) read this: get ( currenttimestamp ) - $$_last_loop_executed > 60. assumes if global variable hasn't been updated during past minute, script not executing.

if you're not using @ least filemaker 13, getting done bit more complicated, possible conditional formatting.

all above workaround fact once start script, since it's designed run, might halt clicking "cancel" button while it's paused, means script can't perform cleanup such clearing global variable. haven't tried technique describe above, guess calculation hidden attribute isn't going update constantly. update when layout gets redrawn, such moving different record.

now, having said that, there better ways script execute periodically.

  • filemaker server can execute script on schedule. use feature myself import data text files contain data downloaded postgresql.
  • filemaker 10+ has script step called install ontimer script execute script after specified number of seconds.

this type of script best placed on server, may not possible because of actual adapter. if that's case, suggest investigating install ontimer script step.


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -