阅读背景:

lpr命令不与CYGWIN一起使用。

来源:互联网 
#!/bin/bash
while :
do
if [ -e ./*.pdf ]
    then
        #printer=$(lpstat -p | grep printer | head -n1 | cut -d \  -f 2)
        printer=$(cat printer.ini)
        for file in *.pdf
        do
         echo "Printing $file"
         $(lpr -P $printer $file)
         echo "Moving $file"
         $(mv $file ./p)
        done
    fi
done
#!/bin/bash
while :
do
if [ -e ./*.pdf ]
    th



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: