[cups.general] Re: Notification when a print job is not printed

david david.bain at alteroo.com
Sat Oct 8 00:11:05 PDT 2005


On Fri, 2005-10-07 at 17:05 -0500, Matt Hull wrote:
> 
> On Fri, 7 Oct 2005, Anonymous wrote:
> 
> > Create a Bash script that does this.
> > ----------------------------------------------
> > #!/bin/bash
> > qcheck_number=`lpq.cups -a | wc -l`
> >
> > if [ "$qcheck_number" -ge 5 ]
> >   then
> >         lpq.cups -a | mail -s "Printer Issue Detected @ http://servername:631" username at domain.com
> >   else
> >         exit
> > fi
> >
> > ------------------------------------------------
> > Run it from crontab like every 5 minutes.
> >
> > Works good for figuring out if you have a broken queue, the jobs will pile up in the queue and you will get a notification about that.
> 
> is there a way to have cups notify?  using a cron every five minutes to
> poll seems inefficient
> 
> matt
> 
> >
> >
> >
> >
> >
> > > This is a multi-part message in MIME format.
> > > --------------050301030303080807060001
> > > Content-Type: text/plain; charset=ISO-8859-15; format=flowed
> > > Content-Transfer-Encoding: quoted-printable
> > >
> > > Hi,
> > >
> > > is it somehow possible to get a mail or something else, if a
> > > print job is not printed within a certain time (say 90min).
> > > We have sometimes trouble with some pdf-files or 1-2 printers.
> > > In the moment I check it manually.
> > > Is there a better way to do it ?
> > >
> > > --=20
> > > Bye,
> > >      Peer
> > > _________________________________________________________
> > > Max-Planck-Institut fuer Biogeochemie
> > > Dr. Peer-Joachim Koch
> > > Hans-Kn=F6ll Str.10            Telefon: ++49 3641 57-6705
> > > D-07745 Jena                 Telefax: ++49 3641 57-7864
> > >
> > > --------------050301030303080807060001
> > > Content-Type: text/x-vcard; charset=utf8;
> > >  name="pkoch.vcf"
> > > Content-Transfer-Encoding: 7bit
> > > Content-Disposition: attachment;
> > >  filename="pkoch.vcf"
> > >
> > > begin:vcard
> > > fn:Peer-Joachim Koch
> > > n:Koch;Peer-Joachim
> > > org;quoted-printable:MPI f=C3=BCr Biogeochemie;DVA
> > > adr:;;Hans-Knoell-Str. 10;Jena;;07745;Germany
> > > email;internet:pkoch at bgc-jena.mpg.de
> > > title:Dr.
> > > tel;work:+49 3641 576705
> > > tel;fax:+49 3641 577705
> > > x-mozilla-html:FALSE
> > > version:2.1
> > > end:vcard
> > >
> > >
> > > --------------050301030303080807060001--
> > >
> >
> > _______________________________________________
> > cups mailing list
> > cups at easysw.com
> > http://lists.easysw.com/mailman/listinfo/cups
> >
> 
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups

It should be possible to use tea4cups to do something like this. It cost
me $9.99 but made it possible for me to send my print jobs to a script.
It can also check the status of print jobs and alert you if it fails.

In theory you can download it for free, but I was not successful with
the svn checkout.





More information about the cups mailing list