search for: beforepag

Displaying 1 result from an estimated 1 matches for "beforepag".

Did you mean: beforepass
1998 Sep 25
3
printer accounting
...ages were printed. The reason this will work is that the lpd on the hp only allows 1 connection at a time. So you do all this work at one point. You may have to play around with delays and such but I see no reason why it shouldn't work. it would look at little like this. #!/bin/sh #pagecounter BEFOREPAGES=`npadmin --pagecount {printer ipaddress)` lpr -Pprintername -r %s AFTERPAGES=`npadmin --pagecount {printer ipaddress)` TOTAL = `expr $BEFOREPAGES - $AFTERPAGES` then you echo out TOTAL with usersnames etc etc to a log (with logger preferrably) that should help somewhat. good luck -sv