我有一个杯子服务器,上面配置了一台共享打印机.它可以毫无问题地打印测试页.
printername (Idle,Accepting Jobs,Shared) Description: desc Location: Driver: Zebra ZPL Label Printer (grayscale,2-sided printing) Connection: socket://172.20.50.26 Defaults: job-sheets=none,none media=oe_w288h432_4x6in sides=one-sided
这是lpstat -t的输出.它表明打印机处于空闲状态并接受请求@H_404_5@
admin@SERVER:~$lpstat -t scheduler is running no system default destination device for printername: socket://172.20.50.26 printername accepting requests since Thu 26 Jan 2012 01:29:35 PM CET printer printername is idle. enabled since Thu 26 Jan 2012 01:29:35 PM CET
现在,当我想通过LPR命令向它发送printjob时,它将无法识别打印机@H_404_5@
/usr/bin/lpr -P printername test.pdf
结果@H_404_5@
lpr: ttn_seg_zebra1: unknown printer
我在这里想念的是什么
?@H_404_5@
解决方法
根据lptstat输出,您的打印机名称字面意思是“printername”.
运行lp -d printername test.pdf或lpr -P printername test.pdf将有效.@H_404_5@
[root@Smack ~]# lpstat -t scheduler is running no system default destination device for label: socket://label:9100 device for upstairs: socket://upstairs:9100 label accepting requests since Mon Feb 27 05:18:45 2012 upstairs accepting requests since Mon Feb 27 06:31:23 2012