> From [EMAIL PROTECTED] Wed Oct 15 19:50:50 2003
> Date: Wed, 15 Oct 2003 19:10:58 -0700 (PDT)
> From: "James.Q.L" <[EMAIL PROTECTED]>
> Subject: LPRng: need some idea for directing jobs between 
> To: [EMAIL PROTECTED]
>
> Hi,
>
> i have been sending emails and barely get answered. can someone please advise me for 
> this one ?
> TIA
>
> I have AIX 4.3 running SystemV print spooler. it's also a samba PDC server. users 
> have to log in
> to print. 
>
> now i just added a redhat linux running LPRng 3.8.19 which will do the accounting 
> etc. so i need
> to forward the jobs that sent to AIX to the redhat. no problem there. 
>
> but my question is: 
>
> if there is error(user page quota,etc) while printing on the redhat, how do i 
> redirect the error
> back to the samba server which will generate a popup window to the clients. clients 
> will run
> windows98/XP pro mainly.
>
> i am new to printer admin. and doesn't know if this setup is fine for my situation, 
> approx 100 pc,
> 3 hp printers(lj 2200,4000,4100 ).
>
> will this setup be problem for administration , efficient?
>
> many thanks!
>
> Qiang

# Purpose: sendmail program
#   default sendmail=/usr/sbin/sendmail -oi -t  (STRING)
# Purpose: allow mail to user using the sendmail program
#   default sendmail_to_user  (FLAG on)

# Purpose: mail to this operator on error
#   default mail_operator_on_error=  (EMPTY STRING)


This controls the handling of email.  If users WANT a popup,
then they use:

lpr -m mailaddress ...

(I forget the AIX options).

You can replace the sendmail program with a script that
will extract the information and send it.

The best way to test this is to use the following setup:

lp:
  :sd=/var/spool/lpd/%P
  :sendail=/var/test/sendmail_script
  :mail_operator_on_error=yes
  :filter=/var/test/filter

#!/bin/sh
# filter
# Produce a nice error
cat >/dev/null
exit 1

#!/bin/sh
# sendmail_script
(
echo "START"
echo $@
set
date
cat
) >>/tmp/testout

Now you can see what is being passed and sent and work out
how to use this information.

WARNING: the biggest problem is trying to track down which user
is on which machine.

Patrick

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