I tried to use lseek system call to determine the number of bytes in a file. To do so, I used open system call with O_APPEND flag to open a file. As lseek returns the current offset so I called lseek for opened file with offset as zero and whence as SEEK_CUR. So I guess it must return the number of bytes as the file is ready to append and lseek seeks only 0 bytes. But result is showing 0 bytes.
In my team we generate huge logs and many a times due to this our total system crumbles.
I want to write a script which compares the file modification time with the current time and then if the difference is more than 'n' days the file is zipped , if the difference is more than ' n' days the file is deleted.
I want to schedule this at 1 am everyday and an email to be send to a mai
My question is which direction should I go to build a temperature control unit which will accept two input sensors and compare the difference between the two and turn on a fan when the difference is greater then what I have programed into the unit.
I want to know about the technical/basic difference between windows, Linux, Mac o/s. If you tell me core difference between these o/s then its very helpfull for me.Please I request you to tell me in points that will be easier way to understand the difference not for me also for all those people who want to you about this topic.