xwc-jobs helper to format output
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 26 Feb 2019 08:50:28 +0000 (09:50 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 26 Feb 2019 08:55:10 +0000 (09:55 +0100)
README
xwc-jobs [new file with mode: 0755]

diff --git a/README b/README
index 77d9acd..5cf03fc 100644 (file)
--- 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 (executable)
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