Trying to do: If string with "/sorry/" is found in a squid's log file, pass that string as an argument to a "hold" routine.my $name = "/var/log/squid/access.log"; my $res = ban ($_); my $ref=tie *FH,"File::Tail",(name=>$name); while (<FH>) { m/\/sorry\// && hold ($_); }
In reply to Real time log parser by kazak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |