mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 03:37:55 +00:00
turns off debug output, updates usage notes
Signed-off-by: Jed Reynolds <jed@bitratchet.com>
This commit is contained in:
@@ -2,9 +2,19 @@
|
||||
|
||||
# Follow these message through journalctl using this technique:
|
||||
#
|
||||
# Read from a pipe or a fifo:
|
||||
# sudo ./loadmon | ./parse_loadmon.pl
|
||||
#
|
||||
# mkfifo /tmp/load.fifo
|
||||
# ./parse_loadmon.pl < /tmp/load.fifo
|
||||
# sudo ./loadmon > /tmp/load.fifo
|
||||
#
|
||||
# Loadmon output is now longer than journalctl line limits, so the
|
||||
# below example will not work:
|
||||
# sudo ./loadmon.pl | logger -t loadmon
|
||||
# ...new terminal...
|
||||
# watch -n15 'journalctl --since "20 sec ago" -t loadmon | ./parse_loadmon.pl'
|
||||
|
||||
#
|
||||
|
||||
use strict;
|
||||
@@ -26,7 +36,7 @@ sub mb {
|
||||
|
||||
while (my $line=<STDIN>) {
|
||||
chomp $line;
|
||||
print "line[$line]\n";
|
||||
# print "line[$line]\n";
|
||||
my $lc_pos = index($line, '[{');
|
||||
# print "lc at $lc_pos\n";
|
||||
next if ($lc_pos < 0);
|
||||
|
||||
Reference in New Issue
Block a user