需要命令行解决方案,因为 Brother 打印机停止打印,除非物理重新启动

需要命令行解决方案,因为 Brother 打印机停止打印,除非物理重新启动

我有一个 shell 脚本代码,可以将生成的任何新 PDF 打印到连接到 MACOS 的 Brother 打印机,如下所示

lp -d Brother_HL_L2350DW_series /var/pdfs/11.pdf

2 或 3 天后,打印机停止打印,我看到打印机队列不断增长,并出现错误消息The printer is not responding。见附件:

在此输入图像描述

tail /var/log/cups/error_log

E [26/Apr/2021:13:38:45 +0200] [Job 15850] The printer is not responding.
E [26/Apr/2021:13:39:45 +0200] [Job 15850] The printer is not responding.

Rustems-iMac:~ rustemince$ lpstat -a
Brother_HL_L2350DW_series accepting requests since Mo 26 Apr 13:24:09 2021
Brother_HL_L2350DW_series_2 accepting requests since Fr  9 Apr 15:28:24 2021
Canon_TS700_series accepting requests since Mo 26 Apr 15:00:32 2021
HP_LaserJet_M203_M206 accepting requests since Sa  3 Apr 09:24:54 2021
HP_LaserJet_M203dw__5F40D6_ accepting requests since Mo 29 Mär 12:26:13 2021
Kyocera_ECOSYS_M5526cdw accepting requests since Di  6 Apr 18:27:08 2021
Kyocera_ECOSYS_M5526cdw_b_3_Fax accepting requests since Di  7 Jan 21:51:33 2020

如果我手动关闭并打开打印机电源,它就会工作并开始待处理的打印。

我可以使用命令行来重置/重新启动打印机,以便它可以重试待处理的排队打印,而不是手动执行上述操作?

相关内容