
Vlhadv
Novice
Oct 17, 2007, 2:14 AM
Post #1 of 4
(2458 views)
|
I wanted to make a daemon in linux to check files having .csv file extension on a certain directory and parse them afterwhich. This should be done every time the directory is updated or added with a new file. I haven't started my code yet and i had already found several examples pertaining to daemon in the web. Those examples uses the same routine in entering the actual daemon mode, which is while(1){ <statements> sleep(10); } Question: Is this the standard? Are there any other ways in entering the actual daemon code? Your opinion will be of much help...
|