Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to pipe issue (linux)

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 :

May 5 11:19:59 MyHostName dhcpd: DHCPACK on 192.168.0.94 to 00:50:56: +ab:42:51 (localhost) via eth1
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1162305]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2024-04-23 10:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found