Ver código fonte

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

Samuel W. Flint 6 anos atrás
pai
commit
72e3d79655
1 arquivos alterados com 9 adições e 0 exclusões
  1. 9 0
      lpremoteWrap

+ 9 - 0
lpremoteWrap

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