From: matz@... (Yukihiro Matsumoto) Date: 2001-11-06T03:00:13+09:00 Subject: [ruby-talk:24407] Re: Writing binary ints to lp Hi, In message "[ruby-talk:24305] Writing binary ints to lp" on 01/11/04, Massimiliano Mirra 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.