Hi,

In message "[ruby-talk:24305] Writing binary ints to lp"
    on 01/11/04, Massimiliano Mirra <list / chromatic-harp.com> writes:

|How can I output a bit to /dev/lp0 like I would with outb( 0x1, 0x378
|) in C?  I have tried with p=open('/dev/lp0','w') and p.print(0b1),
|p.write(0b1) and variants with no success.

I've never used outb(2), but p.printf "%c", 0b1 might help you.

							matz.