Re: [PARPORT] Using C to program printer port

From: Ingo Flaschberger (if@sil.at)
Date: Mon Jan 27 2003 - 19:59:15 EST

  • Next message: Robert Heller: "Re: [PARPORT] Using C to program printer port"

    Hi

    > I have successfully taken code from your examples and written a program that
    > makes the output lines of the printer port go hi/low as desired and toggle a
    > relay.
    >
    > Now, I have two more problems:
    >
    > Gora - what you said is correct; I have to be root to get your program to
    > work. Otherwise, I get a "segmentation fault" error. How can I get around
    > this?
    >
    > I need to have Apache (which runs as wwwrun) execute this code in my cgi-bin
    > directory. I'm setting this up so when someone clicks on a bar
    > on the webpage, it pulls in a relay.

    suid-bit? -> http://www.linuxgeek.net/index.pl/suid

    cya,
            Ingo

    -- 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 : Mon Jan 27 2003 - 20:00:52 EST