Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

An example how to configure a "file-watcher":

Code Block
languagehtml/xml

<job
&lt;job name = "scheduler_file_notification_1">
&lt;script<script language="shell">
&lt;<![CDATA[
                set
                echo %SCHEDULER_JOB_NAME%
                echo %SCHEDULER_TASK_TRIGGER_FILES%
                rem del %SCHEDULER_TASK_TRIGGER_FILES%
            ]]>
&lt;</script>
&lt;start<start_when_directory_changed directory = "c:/temp" regex = "^file[1|2]\.xml$"/>
&lt;</job>

This job will watch the folder c:/temp on a Windows system. With the regular expression one can define, what file(s) has JS to watch. In this example the regex means, that every event regarding the files file1.xml and/or file2.xml will fire the execution of the embedded script (in this case it will echo some values for JS-Environment Variables to stdout).

...