Im making a bash script which watch for file updating and then execute a function and repeat.
Currently, I use pool method but it may cost system performance and not in-time (depend on the sleep time I set).
So could you suggest any solution? Thanks
Edit: I can not use inotify-tools because Im using company computer, and I can not install anything. So is there any solution by using build-in shell?