소스 검색

Add a handy lp-command to auto-select printers

Samuel W. Flint 4 년 전
부모
커밋
9fbcdfd0e1
1개의 변경된 파일13개의 추가작업 그리고 0개의 파일을 삭제
  1. 13 0
      lp-command

+ 13 - 0
lp-command

@@ -0,0 +1,13 @@
+#!/bin/sh
+
+FILE=${@: -1}
+ARGS=${@:1:$#-1}
+
+if [ $1 == '-q' ] ; then
+    shift
+    addPrintJob ${FILE} ${ARGS} 
+elif atHome ; then
+    lp $@
+else
+    echo lpremote ${FILE} ${ARGS}
+fi