[PARPORT] Re: How to detect the status of the printer connected to parallel port??

From: Archana Vasant Deshmukh (archana.deshmukh@wipro.com)
Date: Thu Nov 15 2001 - 06:30:21 EST

  • Next message: Archana Vasant Deshmukh: "[PARPORT] The tunelp program always show status 222"

    Thanks Mirek.

    The tunelp gives following output
    # tunelp /dev/lp0 -s
     /dev/lp0 status is 222, on-line
     # tunelp /dev/lp0 -s
     /dev/lp0 status is 222,on-line when there is no paper.

    Actually, the status is always 222.
    What could be the reason??

    thanks,
    Archana

    ----- Original Message -----
    From: Mirek Kwasniak <mirek@zind.ikem.pwr.wroc.pl>
    To: Archana Vasant Deshmukh <archana.deshmukh@wipro.com>
    Cc: <linux-parport@torque.net>
    Sent: Thursday, November 15, 2001 4:26 PM
    Subject: Re: How to detect the status of the printer connected to parallel
    port??

    > On Thu, Nov 15, 2001 at 04:04:06PM +0530, Archana Vasant Deshmukh wrote:
    > > Hi All,
    > >
    > > I need to detect the status of the printer connected to the parellel
    port of Linux Machine(kernel 2.4.8),Redhat 6.2
    > >
    > > I have written a small application:
    >
    > Try tunelp program:
    >
    > # tunelp /dev/lp0 -s
    > /dev/lp0 status is 216, on-line
    > # tunelp /dev/lp0 -s
    > /dev/lp0 status is 120, busy, out of paper, on-line
    >
    > Mirek



    -- 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 : Thu Nov 15 2001 - 06:27:58 EST