Note: please don't spam any of the e-mail addresses which you see here. Follow this link if you want some addresses to misuse.
From: Alain.Lachapelle@Heimannsystems.Com
Date: Mon, 26 Mar 2001 17:18:36 +0100
Subject: Antwort: Re: Antwort: Re: PPR: Receiving mail from PPR
Hi,
> You can add new responder methods simply by adding little programs to
> /usr/lib/ppr/responders. So, if your embedded device's interface has
> its own way of displaying error messages, you can just create a shell
> script or other kind of little program which takes the message from PPR
> and displays it.
I am trying to use this feature now but the shell script is not executed by
pprd when the print job
has successfully terminated (i.e. ppop status returns "idle" and there were
no errors). The shell script is vary simple and consists only of an echo
and a message sent to our messaging system. If this shell script is
executed from the command line it does output the test string and sends a
message to the concerned process. For testing purposes I launch a simple
print job on the command line like this:
ppr -d hp5simx -m resp_test -F 'PageSize=A4' pi1.ps
resp_test is located in /usr/lib/ppr/responders, has executable rights and consists of these lines:
#! /bin/sh
echo TEST TEST TEST TEST &&
sendhmp -s "38 3 99 9 0xF200 4: 3 6 0 0"[
The printer is defined like the following (i.e. ppad show hp5simx) :
Printer name: hp5simx
Comment:
Interface: tcpip
Address: "10.180.30.100:9100"
Options:
JobBreak: pjl (by default)
Feedback: yes (by default)
Codes: TBCP (by default)
Alert frequency: 0 (never send alerts)
Alert method: none
Alert address: none
Flags: no no (banners discouraged, trailers discouraged)
Charge: none
PPDFile: HP LaserJet 5Si
Bins:
OutputOrder: PPD
Default Filter Options: level=2 colour=False resolution=600 freevm=1515136
mfmode=ljfive
Switchset:
I've read the documentation on responders and I think everything is set. What am I missing?
Regards,
Alain