]> gitweb.fluxo.info Git - scripts.git/commitdiff
Adds lpq-ssh
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 10 Mar 2017 11:30:56 +0000 (08:30 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 10 Mar 2017 11:30:56 +0000 (08:30 -0300)
lpq-ssh [new file with mode: 0755]

diff --git a/lpq-ssh b/lpq-ssh
new file mode 100755 (executable)
index 0000000..9def1f4
--- /dev/null
+++ b/lpq-ssh
@@ -0,0 +1,17 @@
+#!/bin/bash
+#
+# LPQ over SSH.
+#
+
+# Parameters
+BASENAME="`basename $0`"
+SERVER="$1"
+
+# Check
+if [ -z "$1" ]; then
+  echo "usage: $BASENAME <server>"
+  exit 1
+fi
+
+# Proceed
+ssh $SERVER lpq