how to check a file for every 15 mins thr' program
I am writing a program which is going to be run as deamon process.I want this deamon process to check for a presence of a file placed in one directory for every 15 mins.
I know how to make a process to run as deamon but not getting idea for checking file for every 15 mins.If it is possible by using alarm() function,how to use it.Can anybody tell me with example to use alarm().
Also if there is any other way to do,I welcome those ideas.
checking presence of file in directory
I am downloadig file form server to client for every 15 mins trough C my program.So I want to check the file is downloaded or not in specific directory.
How do I check the presence of the file in specified dirctory in C? So if the file got downloaded then I can proceed to download next file from server.