Hi,
I'd like to get the 'pagecount' from a network printer using a Unix command from the Terminal.
In pure Unix machines this is easily achieved by using 'npadmin', but I haven't been able to properly compile it in Darwin due to a conflict with the 'getopt()' function of the GNU_LIBRARY.
The other thing I have tried is to put the following PostScript code into a file and send it to the printer:
#!
statusdict begin pagecount == end flush
I have tried to send it to the printer both with the 'lp' and the 'lpr' commands but I get no response.
Any ideas? Thanks.
I'd like to get the 'pagecount' from a network printer using a Unix command from the Terminal.
In pure Unix machines this is easily achieved by using 'npadmin', but I haven't been able to properly compile it in Darwin due to a conflict with the 'getopt()' function of the GNU_LIBRARY.
The other thing I have tried is to put the following PostScript code into a file and send it to the printer:
#!
statusdict begin pagecount == end flush
I have tried to send it to the printer both with the 'lp' and the 'lpr' commands but I get no response.
Any ideas? Thanks.