Skip to content
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

Some monitored path changes automatically #70

Open
bialyikar opened this issue May 12, 2020 · 2 comments
Open

Some monitored path changes automatically #70

bialyikar opened this issue May 12, 2020 · 2 comments

Comments

@bialyikar
Copy link

bialyikar commented May 12, 2020

Hello.
I have a problem that the path to the monitored directory changes automatically after it is saved.
incrontab -e looks like this:

/home/melon/Gry/Steam/steamapps/compatdata/4500/pfx/drive_c/documents and settings/all users/documents/stalker-shoc/savedgames/ IN_CREATE /bin/bash /home/melon/Test/incron_test.sh "$#"

but after saving it, /documents and settings/ changes to /documents 0 settings/.
I don't understand why "and" changes to "0".

I have a similar path with a different one.
The steps he takes are:
incrontab -e
/home/melon/Gry/Steam/steamapps/common/Gothic II/Saves/ IN_CREATE /bin/bash /home/melon/Test/incron_test.sh $@ $#
Ctrl + o to save.
incrontab -d
When I do it again:
incrontab -e
Instead of the added command:
/home/melon/Gry/Steam/steamapps/common/Gothic II/Saves/ IN_CREATE /bin/bash /home/melon/Test/incron_test.sh $@ $#
I have:
/home/melon/Gry/Steam/steamapps/common/Gothic 0 IN_CREATE /bin/bash /home/melon/Test/incron_test.sh $@ $#

@dandalf
Copy link

dandalf commented Jul 2, 2020

You need to surround the path with quotes in bash to support spaces. I suggest something like:
"/home/melon/Gry/Steam/steamapps/common/Gothic II/Saves/" IN_CREATE /bin/bash /home/melon/Test/incron_test.sh "$@" "$#"`

@kevin201
Copy link

kevin201 commented Feb 9, 2021

You need to surround the path with quotes in bash to support spaces. I suggest something like:
"/home/melon/Gry/Steam/steamapps/common/Gothic II/Saves/" IN_CREATE /bin/bash /home/melon/Test/incron_test.sh "$@" "$#"`

What version are you using that support this? I have tried with 0.5.12 and it doesn't seem to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants