I think the tail -f will continue until interrupted as other posters pointed out.
I was wondering also why you used {$path} in the line my $logFile = "{$path}/DHCPD.log.{$currentDate}" rather than the variable you created, {$logPath}?
Is this a typo?
In reply to Re: Watch log for string (tail -f)
by live4tech
in thread Watch log for string (tail -f)
by hmb104
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |