On Tuesday 24 July 2012 10:31, in comp.unix.shell,
use_the_co...@www.gdargaud.net wrote:
> Hello all,
>
> OK, this is not really a scripting question, but when you have a USB
> printer defined with CUPS, what is the device name ?
> There are several command line tools, such as 'ink' or 'escputil', that
> need /dev/lp or such but I can't find it:
> $ find /dev -name "*lp*"
> reports nothing, and there's nothing interesting in /dev/bus/usb
Assuming that you are using a kernel 2.6 or 3.x Linux based system,
dmesg | grep lp
should report something like
usblp0: USB Bidirectional printer dev 4 ...
If you don't see this sort of line, then the kernel didn't detect the usb
printers at all.
OTOH, if you /do/ see the above lines, then your system's udev rules should
have created a device entry for the device, probably under /dev/usb
~ $ ls -l /dev/usb
total 0
crw-rw---- 1 root lp 180, 0 2012-07-24 08:10 lp0
HTH
--
Lew Pitcher
"In Skills, We Trust"