Date: Mon, 24 Sep 2007 15:44:15 +0700 (ICT) From: Olivier Nicole <on@cs.ait.ac.th> To: freebsd-questions@freebsd.org Subject: Reading page count from USB printer Message-ID: <200709240844.l8O8iFXa076591@banyan.cs.ait.ac.th>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709240844.l8O8iFXa076591>