If you do not see the pipe running you will need to start the listener again by running the startListner script inside the hidden folder. The ps_listener will show you all the named-pipe processes currently running. If you do not see the folder that you started the process in, you will need to delete the hidden folder and start over. The ps_inotify will show you all the inotify processes currently running. There are 2 simple useful scripts that get copied into the hidden folder to view and filter processes: The startListener script is just a safer prompted default shortcut. You can also pass the pipename as the first parameterĪdditionally you can also manually start the listening process by executing the listener as a background process. Start the listener to forward the output from the pipe to the event.etc/folderwatch/inotify-event-listener "mypipename"Ĭd /home/drop/myspecialfolder/.folderwatch You can also pass the name of the pipe as the first argument, otherwise it will prompt you.Then it starts an inotify daemon that sends stdout to the named pipe. Run this command which creates a hidden directory, named pipe, and then copies neccessary specific files from /etc/folderwatch/ into hidden directory.Navigate to the directory you want to listen in.I recommend cloning the repository into /etc/ because /etc/ is generally for etcetera application and will be easy to access for starting a listener from any working directory. Folderwatch A simple application that listens to a folder and executes an event script on the creation of a file
0 Comments
Leave a Reply. |