> From [EMAIL PROTECTED] Fri Jul 11 14:42:06 2003
> Subject: LPRng: Handling "msg" with file_output_match
> From: "Chris O'Regan" <[EMAIL PROTECTED]>
> To: LPRng <[EMAIL PROTECTED]>
> Date: 11 Jul 2003 16:22:53 -0400
>
> Hello,
>
> I am messing with file_output_match in order to provide our students
> with some decent feedback if their file cannot be printed (e.g. yell at
> them if they send an executable to the printer).
>
> So, I set up file_output_match and the last line looks like this:
>
> * msg yell_at_user
>
> My first attempt was to print a simple string:
>
> yell_at_user = User \%s{n} attempted to print \%s{J} at \%s{t}
>
> This caused ifhp to go into an endless loop: The file output matches *
> and runs the "yell_at_user' msg converter. The result gets stored in a
> temporary ifhp* file. But instead of sending the results of
> yell_at_user to the printer as one would expect, it runs file on the job
> again and this whole process repeats until I remove the job from the
> queue. Because of a bug in ifhp, I am left with hundreds of ifhp* temp
> files in the spool directory. Here is a small excerpt from the status
> file:
Ummm... right you are. Well, I've fixed the 'zillion files' problem.
You need to exit with a non-zero error code (JREMOVE) is good.
Alos JFAILNORETRY is good:
#define JFAIL 32 /* failed - retry later */
#define JABORT 33 /* aborted - do not try again, but keep job */
#define JREMOVE 34 /* failed - remove job */
#define JHOLD 37 /* hold this job */
#define JNOSPOOL 38 /* no spooling to this queue */
#define JNOPRINT 39 /* no printing from this queue */
#define JSIGNAL 40 /* killed by unrecognized signal */
#define JFAILNORETRY 41 /* no retry on failure */
#define JSUSP 42 /* process suspended successfully */
#define JTIMEOUT 43 /* timeout */
#define JWRERR 44 /* write error */
#define JRDERR 45 /* read error */
#define JCHILD 46 /* no children */
#define JNOWAIT 47 /* no wait status */
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------