open (TAIL, "logfile.log"); seek (TAIL, 0, 2); # check the manpage for (;;) { sleep 1; # so we don't hog cpu if (seek(TAIL,0,1)) { while (<TAIL>) { # code to act on logfile here } } # execution continues here }
In reply to Re: Piping Tail and while loops
by Anonymous Monk
in thread Piping Tail and while loops
by matt.schnarr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |