> From [EMAIL PROTECTED] Mon Apr 15 10:02:26 2002
> To: [EMAIL PROTECTED]
> Subject: LPRng: external status check from ifhp
> Date: Mon, 15 Apr 2002 11:17:41 -0500
> From: John Perkins <[EMAIL PROTECTED]>
>
> In my (seemingly) never-ending battle with Xerox over my Phaser 5400 printer,
> I've found I can get accurate printer status (at least regarding whether the
> job has finished printing or not) via SNMP.
>
> Question: has anyone out there hacked ifhp (yet) to
> a. send status query via SNMP rather than using PJL status commands
> b. exec an external command to do the dirtywork and wait for it to
>
> return a status to deal with the job in question
>
> If I can do either of those, this printer just might actually work. :)
>
> --
> ============================================================================
> John Perkins | University of Wisconsin-Madison
> Associate Researcher | Department of Computer Science
> [EMAIL PROTECTED] | 1210 W. Dayton St.
> 608-262-0438/608-262-9997 FAX | Madison, WI 53706-1685
> ============================================================================
>
In the next release of ifhp you can do:
sync=|/path_to_program [options]
pagecount=|/path_to_program [options]
waitend=|/path_to_program [options]
This will cause IFHP to start the program with:
STDIN - </dev/null
STDOUT - reporting 'status' information
STDERR - logging/error status information
Information written to STDOUT should have the format: key=value
KEY VALUE
sync 1 - for sync operation, indicates sync is done
(note: can also send 'pagecount=nnn', as some sync stuff can
also get pagecount at same time, so you can optimize this).
waitend 1 - for waitend operation, indicates waitend is done
(note: can also send 'pagecount=nnn', as some waitend stuff can
also get pagecount at same time, so you can optimize this).
pagecount nnn - pagecounter value
(note: if pagecount is returned by sync or waitend you do not call
the pagecount stuff.)
OR: the sync and waitend can exit with status 0 indicating
success (without writing anything to STDOUT)
a non-zero exit value causes ifhp to exit with the
same status; coredump, etc., cause exit with JABORT
(you get the idea).
NOTE: if pagecount exits with no pagecount information
or the sync writes 'pagecount=0' to STDOUT
then this indicates that no pagecounter value is available.
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------