[Samba] Printers Always Paused - A Solution
Van Sickler, Jim
vansickj-eodc at Kaman.com
Mon Aug 19 13:08:01 GMT 2002
Or have "OfficeJet 570" in the Comment...
:-(
Jim
> -----Original Message-----
> From: Joel Hammer [mailto:Joel at HammersHome.com]
> Sent: Monday, August 19, 2002 3:01 PM
> To: Shane Drinkwater; samba at lists.samba.org
> Subject: Re: [Samba] Printers Always Paused - A Solution
>
>
> Boy, this makes you realize how quirky this software is.
> I guess you better not call your printer "disabled_persons_only" or
> "down_town", etc.
> Joel
> On Mon, Aug 19, 2002 at 04:46:27PM -0500, Shane Drinkwater wrote:
> > Paul,
> > That works pretty slick!!!!
> > Thank you
> > Shane
> >
> > -----Original Message-----
> > From: Paul Cochrane [mailto:paul at tortc.tuht.scot.nhs.uk]
> > Sent: Monday, August 19, 2002 9:56 AM
> > To: samba at lists.samba.org
> > Subject: [Samba] Printers Always Paused - A Solution
> >
> >
> > I had a problem with Samba 2.2.5 with the printers being
> > permanantly paused to Windows machines. They could print OK - it
> > was only the status that was wrong.
> >
> > The reason for this was because I had used the word office in the
> > printer name / comment. This was causing the parser which
> > recognises the printer status to find 'off' pausing the printer.
> >
> > A quick fix for this is to replace the line in
> source/printing/lpq_parse.c
> >
> > Do a search for the line stat1_strings is defined and put a
> space on
> > both sides of off. The line should read something like
> >
> > static char *stat1_strings[] = { "offline", "disabled",
> "down", " off ",
> > "waiting", "no daemon", NULL };
> >
> > This stops the printer being paused (after recompiling &
> restarting).
> > This might cause a problem if your printer status does
> actually report
> > "off" somewhere in the line but a quick test of a HP
> jetdirect printer
> > didn't mention off at all when turned off.
> >
> > Hope this helps someone somewhere cause I spent a couple of
> > hours trying to solve this
> >
> >
> > -------------------------------------
> > Paul Cochrane | Tayside Orthopaedic & |
> > | Rehabilitation Technology Centre |
> > ============= |-------------------------------------|
> > | Ninewells Hospital & Med. School |
> > | Dundee, Scotland, UK. |
> > | DD1 9SY. |
> > | Phone: +44 1382 496284 |
> > | Fax: +44 1382 496322 |
> > | E-Mail: paul at tortc.tuht.scot.nhs.uk |
> > -------------------------------------
> >
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions: http://lists.samba.org/mailman/listinfo/samba
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions: http://lists.samba.org/mailman/listinfo/samba
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
>
More information about the samba
mailing list