Pages

Monday, April 11, 2016

Monitoring a directory for new files in Ubuntu

In Linux `inotify` API provides functionality for file systems events.

Based on this API, in Ubuntu, the service/daemon inoticoming has been developed.

inoticoming is a daemon to watch a directory with Linux's inotify
 framework and trigger actions once files with specific names are placed
 in there.

inoticoming "<path_to_target_folder>" <full_path_of_triggered_script> {} "<path_to_target_folder>" \;

The backslash (\) is the part of the command.


source 

No comments :

Post a Comment