while (1) {
at the top and
sleep $nsec;}
at the bottom. (Put your own condition in there if you like, or use a "last" statement inside the loop wherever it's easy to decide that the process can stop.
Also, do heed grinder's advice (which followed my reply). He's right about how to read the log files.
In reply to Re: Re: Re: Is this the most efficient way to monitor log files..
by graff
in thread Is this the most efficient way to monitor log files..
by Rhodium
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |