How to route print jobs with LPRng?
Hello,
I'm fairly new to linux and been entrusted with designing a routing filter for
LPRng print server(hopelessly lost). I have to route the printjobs depending on
the username. I am trying to use
:destination=t1@localhost,t2@localhost
:router=/usr/local/libexec/filters/router
entries in the printcap file to achieve this.
I also read somewhere there is a variable called CONTROL that is passed to the
filters which contains the controlfile data. Can anyone tell me how to access
this variable in a filter?
Also lpd man page says the the router output should have the form
dest t1@localhost
CZ
end
I'm rather confused how to do this, would a simple echo "dest
printer@localhost" statement do this?
Any help is soo greatly appreciated! If anyone can point me towards a example
or a tutorial about routing printjobs it'll be great. thanks heaps!
Chamila
|