usr/bin/lpr:活动作业过多

usr/bin/lpr:活动作业过多

我尝试使用收据打印机进行打印。一切正常,但我将打印件发送到设备的速度太快了。

现在我收到错误:

usr/bin/lpr: Too many active jobs

我想清除所有活动作业。我尝试过重新启动并打开和关闭设备,但没有用。

完整的错误是:

RuntimeException: javax.print.PrintException: java.io.IOException: error=1 running: '/usr/bin/lpr' '-PEPSON_TM_T88V' '-J Java Printing' '-o media=Letter' '/var/folders/fb/fnzlgb7d2p7_h4gspnvdldzr0000gn/T/javaprint159865029725996489'
        /usr/bin/lpr: Too many active jobs.

有没有什么办法可以清除当前的作业?

lpr 有以下选项:

Usage: lpr [options] [file(s)]
Options:
-# num-copies           Specify the number of copies to print
-E                      Encrypt the connection to the server
-H server[:port]        Connect to the named server and port
-m                      Send an email notification when the job completes
-o option[=value]       Specify a printer-specific option
-o job-sheets=standard  Print a banner page with the job
-o media=size           Specify the media size to use
-o number-up=N          Specify that input pages should be printed N-up (1, 2, 4, 6, 9, and 16 are supported)
-o orientation-requested=N
                        Specify portrait (3) or landscape (4) orientation
-o print-quality=N      Specify the print quality - draft (3), normal (4), or best (5)
-o sides=one-sided      Specify 1-sided printing
-o sides=two-sided-long-edge
                        Specify 2-sided portrait printing
-o sides=two-sided-short-edge
                        Specify 2-sided landscape printing
-P destination          Specify the destination
-q                      Specify the job should be held for printing
-r                      Remove the file(s) after submission
-T title                Specify the job title
-U username             Specify the username to use for authentication

相关内容