The stupid question is the question not asked | |
PerlMonks |
Re: pipe issue (linux)by NetWallah (Canon) |
on May 05, 2016 at 20:33 UTC ( [id://1162305]=note: print w/replies, xml ) | Need Help?? |
If your /var/log/messages is infrequently updated, it may appear that your "dispatcher" script does not produce output. Try adding "tail => 5" to the File::Tail constructor - this will make it behave more like the linux "tail" command, and immediately produce 5 lines of output (default is 0). Try moving the Ping constructor outside the loop. Why not combine the scripts, since they seem inter-dependent. On my system, the DHCPACK line looks like this : so, your regex-scanner is very dependent on the syntax produced. Double check that it matches the lines generated by your DHCP server. This is not an optical illusion, it just looks like one.
In Section
Seekers of Perl Wisdom
|
|