[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-talk
Subject: Re: Print from irb to CUPS daemon
From: Ken Bloom <kbloom () gmail ! com>
Date: 2010-03-28 2:08:17
Message-ID: pan.2010.03.26.19.39.27 () gmail ! com
[Download RAW message or body]
On Fri, 26 Mar 2010 04:42:35 +0900, byrnejb wrote:
> 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:
>
>>> my_lp = File.open("????","w")
>>>
>>> my_lp.puts(my_array)
>
> 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")
--
Chanoch (Ken) Bloom. PhD candidate. Linguistic Cognition Laboratory.
Department of Computer Science. Illinois Institute of Technology.
http://www.iit.edu/~kbloom1/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic