On Friday 26 February 2010 23:44:03 Harry Putnam wrote: > Where I'm weak is the part where the custom script checks if the > daemon is running, before the script itself starts. That part would > need to be something pretty fool proof... maybe just grep ps output > for the daemon?
Maybe I'm misunderstanding you, but I don't understand this approach. If the daemon is not running there's nothing in the fifo. Why got to all the complexity of writing an independent program that checks if something is running then does various actions? The script necessarily depends on the daemon running so instead of checking if it is, simply have the daemon start the script. No daemon running = no script launched = no complexity. The script will simply accept what is it is given, no complex checks needed. Seeing as the input is from a logger, chances are you are inserting logs to a db, or launching a log analyser, right? Modern loggers support launching child scripts as a matter of routine. If I'm still off-bat and this approach cannot work for solid technical reasons, then I'll go away and shut if if you say so :-) -- alan dot mckinnon at gmail dot com