Hi Cristoph,

Thank you very much! That is exactly what I needed. I haven't used the
print spooler beyond mundane printing tasks and thought it would be a
possibility.


Thanks again,
-Tom


[EMAIL PROTECTED] writes:

Hi Tom,

that should be quite easy :-) We do something similar, using the queues to
push stuff in an oracle database etc. All you need is a script that reads
from STDIN and writes into your database or whatever and exit with '0' for
success or '1' for error. In the printcap you have to define a pseudo
device 'lp=/dev/null' and the script you are using as a filter
'filter=/path/to/your/script'. This should be it (imho)...


best regards
~christoph



--
/* Christoph Beyer | Office: Building 2b / 23 *\
* DESY | Phone: 040-8998-2317 *
* - IT - | Fax: 040-8998-4060 *
\* 22603 Hamburg | http://www.desy.de */



On Tue, 25 Feb 2003 [EMAIL PROTECTED] wrote:


Hello folks,

A look through dejanews didn't give me the answer I was looking for so I
will ask here. If this has been covered already I would appreciate some
direction to that coverage.


Has anyone used LPRng as a generic job spooler? What I would like to do
is have LPRng (some spooling mechanism that I don't have to write from
scratch) manage a job queue in which the jobs are database updates on a
remote machine. Since I can't use ODBC on this machine I have written
perl scripts that will perform the updates. This part is tested and works
fine. What is now needed is a spooler that will detect success/failure and
possibly resubmit X number of times at Y interval in case of network outage
or other impediment.


If anyone knows of documentation specific to using LPRng this way I would
really appreciate it (so I don't have to reinvent the wheel).


Thanks in advance,
-Tom


Tom deLombarde
[EMAIL PROTECTED]
FTM Development
PO Box 269
Shelby, Ohio 44875-0269
http://www.blackflute.com/


-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------




-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------


-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------

Reply via email to