Browse Source

Wrap lpremote s.t. it can be used in a pipe

Samuel W. Flint 5 years ago
parent
commit
72e3d79655
1 changed files with 9 additions and 0 deletions
  1. 9 0
      lpremoteWrap

+ 9 - 0
lpremoteWrap

@@ -0,0 +1,9 @@
+#!/bin/sh
+
+TEMPFILE=$(mktemp)
+
+cat >${TEMPFILE}
+
+lpremote ${TEMPFILE} $@
+
+rm ${TEMPFILE}