From 8a96b1652f740c190449571f9992b9c151eeba0e Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Tue, 26 Feb 2019 09:50:28 +0100 Subject: [PATCH] xwc-jobs helper to format output --- README | 5 +++-- xwc-jobs | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100755 xwc-jobs diff --git a/README b/README index 77d9acd..5cf03fc 100644 --- a/README +++ b/README @@ -18,9 +18,10 @@ used to display info. ./xwc-jobs.pl 10.60.3.35 hist # list completed jobs Script produces tab delimited output, but if you want to format it nicely you can always use -SEP enviroment variable to specify sparator and column to format it: +SEP enviroment variable to specify sparator and column to format it. This is included in +xwc-jobs helper shell script which is useful for interactive use: -dpavlin@t42:~/safeq$ SEP=, ./xwc-jobs.pl 10.60.3.35 | column -s , -t +dpavlin@t42:~/safeq$ ./xwc-jobs 10.60.3.35 IP id Job Name Owner Status Type Quantity 10.60.3.35 00015c2c - 10.60.3.10 3:User Action 1:Print 0 10.60.3.35 00015c2f Test Page root 3:User Action 1:Print 0 diff --git a/xwc-jobs b/xwc-jobs new file mode 100755 index 0000000..d6188d5 --- /dev/null +++ b/xwc-jobs @@ -0,0 +1,3 @@ +#!/bin/sh -e + +SEP=, ./xwc-jobs.pl $* | column -s , -t | less -S -F -- 2.20.1