Print from irb to CUPS daemon

B

byrnejb

I have googled for this topic but cannot seem to find anything
useful. I want to print a few things directly from an irb session to
one of a number of networked printers that I have configured with
CUPS.

$ lpstat -v
device for HPLj5N: socket://168.192.1.49:9100
device for NP4172: lpd://168.192.1.52/NP4172
device for NP4173: lpd://168.192.1.53/NP4173
device for NP4174: lpd://168.192.1.54/NP4174

For example:

What argument string do I use in order to obtain an IO stream to one
of these devices?
 
K

Ken Bloom

I have googled for this topic but cannot seem to find anything useful.
I want to print a few things directly from an irb session to one of a
number of networked printers that I have configured with CUPS.

$ lpstat -v
device for HPLj5N: socket://168.192.1.49:9100 device for NP4172:
lpd://168.192.1.52/NP4172 device for NP4173: lpd://168.192.1.53/NP4173
device for NP4174: lpd://168.192.1.54/NP4174

For example:


What argument string do I use in order to obtain an IO stream to one of
these devices?

my_lp = IO.popen("lp -d printername")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top