I' ve worked on a small freelance project recently.
It was a log watcher and another tiny program watching it (watcher watcher).
Basically, it's an extended
`tail -f` watching over multiple logs
generated by some persistent programs simultaneously
and sending alerts based on configuration data. So there are two main problems
before starting coding:
- Use threads or use fork()?
- Hand craft tailing code or check if there is already a module for that?