Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - LPD server questions...: (4 Items)
   
LPD server questions...  
Hey All,

I've got a couple LPD server questions I'd like to pose to the Powers That Be...

First, is there any way to configure the LPD server to ignore the named print queue and send everything coming in via 
LPD to a particular print device? Maybe a wildcard entry for the /etc/printcap file or something?

And secondly, is there a way to send back a custom status message to a client using a LPQ client or another similar LPD 
status client? For example, if I wanted to send back something other than "no entries" when the queue was empty...

Thanks,

Mike
RE: LPD server questions...  
Hi Mike:
	Funnily enough, LPD isn't a networking utility (it USES
networking, but it's considered to be a printing utility).     

Amazingly enough, the source code IS available as part of the OS
project: 
http://community.qnx.com/integration/viewcvs/viewcvs.cgi/trunk/services/
lpd/?root=coreos_pub&system=exsy1001

I'll have a quick dig through the source to see if I can find answers,
but at least if they're the wrong answers, the source code is available
for you to change as required :>.

	Robert.

-----Original Message-----
From: Mike Zinni [mailto:mzinni@zebra.com] 
Sent: Monday, July 07, 2008 6:13 PM
To: technology-networking
Subject: LPD server questions...

Hey All,

I've got a couple LPD server questions I'd like to pose to the Powers
That Be...

First, is there any way to configure the LPD server to ignore the named
print queue and send everything coming in via LPD to a particular print
device? Maybe a wildcard entry for the /etc/printcap file or something?

And secondly, is there a way to send back a custom status message to a
client using a LPQ client or another similar LPD status client? For
example, if I wanted to send back something other than "no entries" when
the queue was empty...

Thanks,

Mike

_______________________________________________
Technology
http://community.qnx.com/sf/go/post10137
RE: LPD server questions...  
Awesome, thanks for the help... 

Mike

-----Original Message-----
From: Robert Craig [mailto:rcraig@qnx.com] 
Sent: Tuesday, July 08, 2008 10:24 AM
To: technology-networking
Subject: RE: LPD server questions...

Hi Mike:
	Funnily enough, LPD isn't a networking utility (it USES
networking, but it's considered to be a printing utility).     

Amazingly enough, the source code IS available as part of the OS
project: 
http://community.qnx.com/integration/viewcvs/viewcvs.cgi/trunk/services/
lpd/?root=coreos_pub&system=exsy1001

I'll have a quick dig through the source to see if I can find answers,
but at least if they're the wrong answers, the source code is available
for you to change as required :>.

	Robert.

-----Original Message-----
From: Mike Zinni [mailto:mzinni@zebra.com] 
Sent: Monday, July 07, 2008 6:13 PM
To: technology-networking
Subject: LPD server questions...

Hey All,

I've got a couple LPD server questions I'd like to pose to the Powers
That Be...

First, is there any way to configure the LPD server to ignore the named
print queue and send everything coming in via LPD to a particular print
device? Maybe a wildcard entry for the /etc/printcap file or something?

And secondly, is there a way to send back a custom status message to a
client using a LPQ client or another similar LPD status client? For
example, if I wanted to send back something other than "no entries" when
the queue was empty...

Thanks,

Mike

_______________________________________________
Technology
http://community.qnx.com/sf/go/post10137


_______________________________________________
Technology
http://community.qnx.com/sf/go/post10159
 
- CONFIDENTIAL-
This email and any files transmitted with it are confidential, and may also be legally privileged.  If you are not the 
intended recipient, you may not review, use, copy, or distribute this message. If you receive this email in error, 
please notify the sender immediately by reply email and then delete this email.
RE: LPD server questions...  
Done a bit of digging and found this
http://lprng.sourceforge.net/LPRng-Reference-Multipart/x3105.htm  (OK.
It's "next gen", but it still borrow from the old gen.)

which referred to a wildcarding capability.  Our source base is from
1991, so your mileage may vary. In any case,

"We can use the wildcard facility to cause a default printcap entry to
be used:

    lp|*:cm=Wildcard Alias - %P=lp, %Q=wanted
      :lp=%P@10.0.0.10
    *:cm=Wildcard Name- %P=wanted, %Q=wanted
      :lp=%P@10.0.0.10
"

This appears to be parsed by lpd, so it might even work :>.

I suspect that this isn't quite what you want since it seems to imply an
"if all else fails" approach rather than an "only do this" capability.

In terms of notifications, there's a "sendmail" notification that's part
of lpd that lets you send out a notice when the print job is done, but I
don't see any other facilities in there for any other notifications...

Given my limited knowledge on lpd, you may want to take what I say with
a grain of salt...

	Hope that helps a bit
		Robert.






-----Original Message-----
From: Mike Zinni [mailto:mzinni@zebra.com] 
Sent: Tuesday, July 08, 2008 1:20 PM
To: technology-networking
Subject: RE: LPD server questions...

Awesome, thanks for the help... 

Mike

-----Original Message-----
From: Robert Craig [mailto:rcraig@qnx.com] 
Sent: Tuesday, July 08, 2008 10:24 AM
To: technology-networking
Subject: RE: LPD server questions...

Hi Mike:
	Funnily enough, LPD isn't a networking utility (it USES
networking, but it's considered to be a printing utility).     

Amazingly enough, the source code IS available as part of the OS
project: 
http://community.qnx.com/integration/viewcvs/viewcvs.cgi/trunk/services/
lpd/?root=coreos_pub&system=exsy1001

I'll have a quick dig through the source to see if I can find answers,
but at least if they're the wrong answers, the source code is available
for you to change as required :>.

	Robert.

-----Original Message-----
From: Mike Zinni [mailto:mzinni@zebra.com] 
Sent: Monday, July 07, 2008 6:13 PM
To: technology-networking
Subject: LPD server questions...

Hey All,

I've got a couple LPD server questions I'd like to pose to the Powers
That Be...

First, is there any way to configure the LPD server to ignore the named
print queue and send everything coming in via LPD to a particular print
device? Maybe a wildcard entry for the /etc/printcap file or something?

And secondly, is there a way to send back a custom status message to a
client using a LPQ client or another similar LPD status client? For
example, if I wanted to send back something other than "no entries" when
the queue was empty...

Thanks,

Mike

_______________________________________________
Technology
http://community.qnx.com/sf/go/post10137


_______________________________________________
Technology
http://community.qnx.com/sf/go/post10159
 
- CONFIDENTIAL-
This email and any files transmitted with it are confidential, and may
also be legally privileged.  If you are not the intended recipient, you
may not review, use, copy, or distribute this message. If you receive
this email in error, please notify the sender immediately by reply email
and then delete this email.

_______________________________________________
Technology
http://community.qnx.com/sf/go/post10171