I am linux Admin, and i last touched C when i was 3rd year Computer science student!! after that from last good couple of year did not touch C
i am looking for some solution which i explained to this questions :
while looking in google, i found this C code which works as directory watcher
Now,i tryed this code, its only works the directory, it does not go inside another directory
Example, if i set :
wd = inotify_add_watch( fd, "/htdocs",
it will just keep watch first 1st level of this directory, any directory bellow this will not watch
is there any way to add this facilities on this code ???
also : how can i run this code always?? if i run this code
it will just fire onece, but after that it will exit, so how can i run this code always???