mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 04:07:52 +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:
|
# 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
|
# sudo ./loadmon.pl | logger -t loadmon
|
||||||
# ...new terminal...
|
# ...new terminal...
|
||||||
# watch -n15 'journalctl --since "20 sec ago" -t loadmon | ./parse_loadmon.pl'
|
# watch -n15 'journalctl --since "20 sec ago" -t loadmon | ./parse_loadmon.pl'
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
@@ -26,7 +36,7 @@ sub mb {
|
|||||||
|
|
||||||
while (my $line=<STDIN>) {
|
while (my $line=<STDIN>) {
|
||||||
chomp $line;
|
chomp $line;
|
||||||
print "line[$line]\n";
|
# print "line[$line]\n";
|
||||||
my $lc_pos = index($line, '[{');
|
my $lc_pos = index($line, '[{');
|
||||||
# print "lc at $lc_pos\n";
|
# print "lc at $lc_pos\n";
|
||||||
next if ($lc_pos < 0);
|
next if ($lc_pos < 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user