On Tue, 11 Nov 2003, Jamie Jennings wrote:
JJ> Hi. I have the need to archive all of my print jobs for later retrieval
JJ> and/or analysis. I would like to use the tools available in the LPRng
JJ> and/or ifhp package to do this.
JJ>
JJ> I would like to send a job to a printer, have the job print on the actual
JJ> printer and then have a copy of the actual job (postscript or text) stored
JJ> in a archive directory on the print server.
JJ>
JJ> I have tried reading the documentation, but haven't had much luck finding
JJ> a way to do this. Does anyone know of a method that will work?
Hook it up with any existing filter script you have or add a new one. You
could for example configure a banner script (that outputs no banner of
course) which has the only role of doing this copying. The data file
filename is given to most filter scripts via the -e option.
#!/bin/sh
for PARAMETER in "$@"; do
case "$PARAMETER" in
-e*)
DATA=`echo "$PARAMETER" | cut -c3-`
;;
esac
done
cp "$DATA" /path/to/somewhere/
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------