You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

JobScheduler can monitor file creation, file change and timestamp change with a (standalone) job. This job can then start a job chain or job group.

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

{{
<job name = "scheduler_file_notification_1">
<script language="shell"><![CDATA[
set

<source>
echo %SCHEDULER_JOB_NAME%
echo %SCHEDULER_TASK_TRIGGER_FILES%
rem del %SCHEDULER_TASK_TRIGGER_FILES%
]]></script>
<start_when_directory_changed directory = "c:/temp" regex = "^file1\.xml$"/>
</source>
</job>
}}

This job will watch the folder "c:/temp" on a ms-windows system. 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).

  • No labels