in reply to Doing every X seconds
I would like to know more about your application before proposing a solution.
What code do you have now?
How does this surveillance of a file for the keyword "test" factor into that?
Is this file being modified by other means than a simple append by another process?
How are you keeping track of what has done before?
Does "doing jobs" have to happen in parallel? If so, why so?