-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infinite loop when invoke "ls -la" in watched directory #8
Comments
I personally think you install watcher the wrong way. Why do you create a separate ini file on the first place? Here is how I use watcher:
Also, if you use multiple bash command, I suggest using && (and-and) instead of ; (semicolon). This way, if one of the commands fails, the remaining commands won't try to run and ruin the system possibly. Or if you want to have a more complex command list, use a bash script and run that with watcher. My thoughts about your command is that you specified "close" operation to be executed and made the command recursive. Close means any operation that accesses a file and then leaves it. So you basically told watcher to watch the whole test folder in your tmp folder and whenever an application accesses a file and then closes it, the command should be executed. I don't know what is your exact project, but maybe you wish to have a create,modify instead of close as events watched for. |
Not sure if it's a bug or not, but just in case let me provide details:
Expected behaviour The log shows nothing, since no file was closed (maybe I'm wrong in this assumption...)
Found behaviour The daemon starts writing the log without stopping:
The text was updated successfully, but these errors were encountered: