I am coding in C on RHEL 5.6 and trying to execute a function only when a new file has been added to a known directory.
I am currently using stat(directory, &buffer); and comparing the modification...