aboutsummaryrefslogtreecommitdiff
path: root/lpr-ssh
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-04-22 09:17:14 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-04-22 09:17:14 -0300
commit5ea22ca5698cdd16a8797ac5d8edb03817946c66 (patch)
treec9040cef92b0a116d9bb98f18ba705af3d26ad22 /lpr-ssh
parent1b7f2cc5f57e0480143d045ce08b7c1b80b4cfe9 (diff)
downloadscripts-5ea22ca5698cdd16a8797ac5d8edb03817946c66.tar.gz
scripts-5ea22ca5698cdd16a8797ac5d8edb03817946c66.tar.bz2
Moves lpr-ssh scripts to its own repo
Diffstat (limited to 'lpr-ssh')
-rwxr-xr-xlpr-ssh23
1 files changed, 0 insertions, 23 deletions
diff --git a/lpr-ssh b/lpr-ssh
deleted file mode 100755
index cf7db82..0000000
--- a/lpr-ssh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash
-#
-# LPR over SSH.
-#
-
-# Parameters
-BASENAME="`basename $0`"
-SERVER="$1"
-
-# Shift
-shift
-
-# Check
-if [ -z "$1" ]; then
- echo "usage: $BASENAME <server> <file>"
- exit 1
-elif [ ! -e "$*" ]; then
- echo "no such file: $*"
- exit 1
-fi
-
-# Proceed
-cat "$*" | ssh $SERVER lpr