LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-18-2004, 08:58 AM   #1
marisi
LQ Newbie
 
Registered: Aug 2004
Location: Australia
Posts: 2

Rep: Reputation: 0
Unhappy 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
 
Old 08-18-2004, 10:20 AM   #2
laceupboots
Member
 
Registered: Dec 2003
Location: Houston
Distribution: Knoppix,lenova yoga 3, Samsung s6 -android
Posts: 307

Rep: Reputation: 30
This link might help
http://www.lprng.com/LPRng-Reference-Multipart/lpr.htm
 
Old 08-21-2004, 08:25 PM   #3
marisi
LQ Newbie
 
Registered: Aug 2004
Location: Australia
Posts: 2

Original Poster
Rep: Reputation: 0
Smile re:How to route print jobs with LPRng?

thanks heaps man ive already had a look..I will try again to see if I can call a script from inside hte wrapper filter
 
Old 08-21-2004, 10:39 PM   #4
laceupboots
Member
 
Registered: Dec 2003
Location: Houston
Distribution: Knoppix,lenova yoga 3, Samsung s6 -android
Posts: 307

Rep: Reputation: 30
Welcome, let me know how that works out for you. Never know when I or someone else might need to do the same thing.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't print to print server (RH8 + LPRng) ivanscheers Linux - Networking 1 10-08-2004 06:37 AM
Cannot print multiple pages with LPRNG arubin Slackware 0 07-11-2004 04:49 AM
Can't print to remote printer using LPRng Earl Parker II Linux - Networking 1 07-05-2004 10:07 AM
LPRng - Disappearing Print Jobs Gedwimor Slackware 1 09-28-2003 10:27 AM
Print jobs. Oberon_sedai Linux - Newbie 0 11-26-2001 05:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration