Hello,

  I've been having a lot of trouble implementing a dynamic router, so I 
decided to implement a simple one as the one in Sec 4.18 in the HOWTO.

Printcap:
/****
p:force_localhost
lp:server
 :lp=128.255.152.107%9100
 :sd=/var/spool/lpd/%P
 :router=/etc/router.script
 :destinations=lp,r400,r386
r400:force_localhost
r400:server
    :lp=128.255.82.146%9100
    :sd=/var/spool/lpd/%P
r386:force_localhost
r386:server
    :lp=r386.medicine.uiowa.edu%9100
    :sd=/var/spool/lpd/%P
*****/

router.script:
/*****
# /etc/router.script
#!/bin/sh
/bin/cat <<EOF
dest lp
copies 2
Cred
end
dest r400
end
EOF
exit 0
********/

When I run lpq before sending the lpr command, everything seemed fine, but 
after sending the print command, I got the following error:

[EMAIL PROTECTED] etc]# lpr printsample
[EMAIL PROTECTED] etc]# lpq
Printer: [EMAIL PROTECTED] (printing disabled) (destinations lp, r400, r386)
 Queue: no printable jobs in queue
 Status: lp: Check_for_missing_files: FAIL 'cfA888ibrahim.uihc.uiowa.edu' 
Get_route: incoming control filter '<NULL>' failed 'JABORT' at 
11:12:47.875
Printer: [EMAIL PROTECTED] (printing disabled)
 Queue: no printable jobs in queue
Printer: [EMAIL PROTECTED] (printing disabled)
 Queue: no printable jobs in queue

---->I wonder, why I am getting the error that the incoming control filter 
failed?

Any help/hints will be appreciated,

Thanks,
Mai

--
*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*
"The way to love anything is to realize that it might be lost."
~Gilbert K. Chesterton
*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*




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