diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-08-25 03:49:35 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-08-25 03:49:35 +0200 |
commit | c8c277200169dfadf88dd176e5c056967550e059 (patch) | |
tree | ec1a519ef550c2206c7863503627388e343778a3 /remote/lib/report.sh | |
parent | 5e6c83d51d0f52ecb464f137ad68f0bd1a83f5e4 (diff) | |
download | conky-c8c277200169dfadf88dd176e5c056967550e059.tar.gz conky-c8c277200169dfadf88dd176e5c056967550e059.tar.bz2 conky-c8c277200169dfadf88dd176e5c056967550e059.tar.xz conky-c8c277200169dfadf88dd176e5c056967550e059.zip |
Add remote services
Diffstat (limited to 'remote/lib/report.sh')
-rw-r--r-- | remote/lib/report.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/remote/lib/report.sh b/remote/lib/report.sh new file mode 100644 index 0000000..a5c16d4 --- /dev/null +++ b/remote/lib/report.sh @@ -0,0 +1,15 @@ +function standart_report { + local generator="$1" + local filter="${2:-print_table | decorate_table}" + { + + #check_darksoft 12>/dev/fd/12 | print_table #| column -t -o " " + eval "$generator 12>/dev/fd/12 | $filter" + report=$(cat<&12) + } 12<<EOF +EOF + + print "$report" + echo + finish +} |