From: Silvio Rhatto Date: Fri, 10 Mar 2017 11:45:39 +0000 (-0300) Subject: Adds lprm-ssh X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=bb446e9030b1a5404868ff0cff2af0b6da9d29a2;p=scripts.git Adds lprm-ssh --- diff --git a/lprm-ssh b/lprm-ssh new file mode 100755 index 0000000..53e1905 --- /dev/null +++ b/lprm-ssh @@ -0,0 +1,20 @@ +#!/bin/bash +# +# LPR over SSH. +# + +# Parameters +BASENAME="`basename $0`" +SERVER="$1" + +# Shift +shift + +# Check +if [ -z "$1" ]; then + echo "usage: $BASENAME " + exit 1 +fi + +# Proceed +ssh $SERVER lprm $1