diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-03-10 08:45:39 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-03-10 08:45:39 -0300 |
commit | bb446e9030b1a5404868ff0cff2af0b6da9d29a2 (patch) | |
tree | 62d53823fa1f0f3657f5b2012b6f36916e6a5397 | |
parent | 7a69990b01cc7f9d25e6fcfc8076bd96154f980c (diff) | |
download | scripts-bb446e9030b1a5404868ff0cff2af0b6da9d29a2.tar.gz scripts-bb446e9030b1a5404868ff0cff2af0b6da9d29a2.tar.bz2 |
Adds lprm-ssh
-rwxr-xr-x | lprm-ssh | 20 |
1 files changed, 20 insertions, 0 deletions
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 <server> <job>" + exit 1 +fi + +# Proceed +ssh $SERVER lprm $1 |