Reading page count from USB printer

Olivier Nicole on at cs.ait.ac.th
Mon Sep 24 01:44:20 PDT 2007


Hi,

I have an HP2200 printer connected to a 6.2 box via USB.

I would luke to read the page count. I know the PCL sequence to do
that, but I am unsure about the way to access the printer.

The pinter shows up at /dev/ulpt0, I can redirect text to it for
printing, using cat file.ps >/dev/ulpt0

But I do not manage to read the PCL response.

How should I do? In Perl preferably.

Best regards,

Olivier


More information about the freebsd-questions mailing list