monitor the file system event and execute correspond commands.