Hi Gurus,
To the Brain Teaser, if I add another condition, say the executable should not be altered, how the program should be altered? (no perl please, purely C). I forgot to mention this condition my staff had mentioned. ( forgot then and got now )
The program executed the first time should do some thing and if executed again, should do nothing. (not to encounter "file missing" error though )
On first run, the program could modify its mtime (or some portion of mtime like microseconds) to some specific value and then on subsequent runs if it sees that mtime quit.