目前情况是盒子安装了cups共享了打印机,局域网的电脑或手机都能正常使用共享的打印机,现在是希望能通过盒子的命令行来打印盒子里面的文件,网上说用lp命令或者lpr命令+文件名就能直接打印,可是我这边怎么尝试都不行,请大神赐教。谢谢
root@hi3798mv100:~# lpr 12345.pdf
-bash: lpr: command not found
root@hi3798mv100:~# lpr-cusp 12345.pdf
-bash: lpr-cusp: command not found
root@hi3798mv100:~# lpr-cups 12345.pdf
-bash: lpr-cups: command not found
root@hi3798mv100:~# lpr.-cups 12345.pdf
-bash: lpr.-cups: command not found
root@hi3798mv100:~# lp 12345.pdf
lp: Error - unable to access "12345.pdf" - No such file or directory
root@hi3798mv100:~# lp 12345.pdf
lp: Error - unable to access "12345.pdf" - No such file or directory
root@hi3798mv100:~# lpr 12345.pdf
-bash: lpr: command not found
root@hi3798mv100:~# lp /mnt/sda2/usbfiles/12345.pdf
lp: Error - unable to access "/mnt/sda2/usbfiles/12345.pdf" - No such file or directory
root@hi3798mv100:~# lpr /mnt/sda2/usbfiles/12345.pdf
-bash: lpr: command not found
root@hi3798mv100:~# lpr.cups
-bash: lpr.cups: command not found
root@hi3798mv100:~# $lpr 12345.pdf
-bash: 12345.pdf: command not found
root@hi3798mv100:~# $lp 12345.pdf
-bash: 12345.pdf: command not found
root@hi3798mv100:~# lpstat -p
printer Lenovo_M7250 is idle. enabled since Tue 15 Nov 2022 08:17:55 PM CST
root@hi3798mv100:~# lpstat -r
scheduler is running
root@hi3798mv100:~# lpstat -v
device for Lenovo_M7250: usb://Lenovo/M7250?serial=00LP01749281
root@hi3798mv100:~# lpstat -d
system default destination: Lenovo_M7250
root@hi3798mv100:~# C