in reply to Re^2: blocking, non-blocking, and semi-blocking
in thread blocking, non-blocking, and semi-blocking
As for the problem of your tail dying, I suggest you sprinkle salt on it once a week and be careful how you sit down. No, wait, that's wrong. I meant to say that I suspect the tail would fail even if you ran it from the command line -- either because that file doesn't exist, or because your version of tail doesn't support the command-line arguments you're passing it. If you want to tail -f a file that might not exist yet, use tail -F (for GNU tail, at least). If I'm wrong and the cause of death is more mysterious, try either changing "tail -f -n 0 /tmp/test_file |" to "tail -f -n 0 /tmp/test_file 2>&1 | tee /tmp/unhappy.log |", or to "strace -o /tmp/unhappier.log tail -f -n 0 /tmp/test_file". Examine the generated log file to diagnose the problem.
Once you merge the two selects, you can dispense with the timeout too.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: blocking, non-blocking, and semi-blocking
by genecutl (Beadle) on Sep 01, 2004 at 01:55 UTC |