diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-08-25 06:45:30 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-08-25 06:45:30 +0200 |
commit | aa29ce5a243320559f8f83d9434bc55f20ae9aec (patch) | |
tree | cbf8fbfc079d36cbd25291950b5b2606d54b430a /remote/logs.sh | |
parent | 16e27beaa24c6c551eaa0d3e6d115017939593a1 (diff) | |
download | conky-aa29ce5a243320559f8f83d9434bc55f20ae9aec.tar.gz conky-aa29ce5a243320559f8f83d9434bc55f20ae9aec.tar.bz2 conky-aa29ce5a243320559f8f83d9434bc55f20ae9aec.tar.xz conky-aa29ce5a243320559f8f83d9434bc55f20ae9aec.zip |
Overview screens also ported to remote mode
Diffstat (limited to 'remote/logs.sh')
-rwxr-xr-x | remote/logs.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/remote/logs.sh b/remote/logs.sh new file mode 100755 index 0000000..91257c0 --- /dev/null +++ b/remote/logs.sh @@ -0,0 +1,32 @@ +#! /bin/bash + +. lib/status.sh + +function filter_syslog { + log="$1" + lines=${2:-20} + + tail -n $lines $log | sed -r 's/(MAC|OUT|IN|TOS|PREC|ID|RES)=[[:alnum:]:]*[[:space:]]//g' +} + + +decorate "Serv1:" purple; echo +filter_syslog /var/log/messages_darkserv1 + +echo +echo + +decorate "Serv3:" purple; echo +filter_syslog /var/log/messages_darkserv3 + +echo +echo + +decorate "Serv4:" purple; echo +filter_syslog /var/log/messages_darkserv4 + +#echo +#echo + +#decorate "Styx:" purple; echo +#filter_syslog /var/log/styx |