Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: 'Configuration ...' added

...

  • addition, modification or removal of a file or files

In contrast with to File Watching, a directory monitoring event is triggered when a change occurs - the number of files in the directory being monitored that cause the event is not significant. Therefore a job that handles directory monitoring events would have to handle the files associated with that event.

Configuring a Standalone Directory Monitoring Job 

The standard method of implementing Directory Monitoring is to start a Standalone Job every time a file is either added to or deleted from a monitored directory. In addition, a filter can be specified to restrict the monitoring to specific file names.

The following screen shot shows how JOE - JobScheduler Object Editor is used to configure the monitoring of a directory ./monitor_dir . Additionally, only files with the extension txt will be acted on.

Image Added

In the element tree in the left hand pane in JOE you will see the Run Options function for each job. Click on the New Dir button in the Start When Directory Changed area of the right hand pane to configure the directory that is to be monitored. Save this configuration by clicking the Apply Dir button after you have entered the monitor_dir and \.txt$ values in the Watch Directory and File Regex fields. Repeat this procedure to add further directories or patterns as required.

Standalone Jobs that are started by Directory Monitoring can also be started manually as required. Directory Monitoring can also be combined with scheduled Run Time configurations.

Directory Monitoring cannot be implemented for Order Jobs.

Resources

Display content by label
TypeFeature
Labelsjobscheduler feature directory-monitoring

...

Display content by label
TypeExample
Labelsjobscheduler example directory-monitoring

See also

Further References