Re: [PARPORT] Tcl-question?

From: Tim Waugh (twaugh@redhat.com)
Date: Tue Feb 05 2002 - 07:42:50 EST

  • Next message: Wolfram Reda: "[PARPORT] ieee1394 cdrw,cdrecord,pg kernel driver"

    On Tue, Feb 05, 2002 at 12:26:16PM +0000, James Robert Adkins wrote:

    > set testi [open /dev/lp0 w+]
    > set max 0x37f
    > for { set i 0x378 } { $i < $max } { incr i } {
    > seek $testi $i
    >
    > set pos [tell $testi]
    > puts $testi 1
    > }

    You are treating /dev/lp0 like it is /dev/port. It is not. For this
    kind of code, it seems like /dev/port is the easiest answer though.

    Tim.
    */



    -- To unsubscribe, send mail to: linux-parport-request@torque.net --
    -- with the single word "unsubscribe" in the body of the message. --



    This archive was generated by hypermail 2b29 : Tue Feb 05 2002 - 07:48:32 EST