Grabbing Active Job States from CommandLine (Possible?)

Tony tmuniz at sprich.com
Thu Jun 18 12:53:16 PDT 2009


>
> --Apple-Mail-5-756032699
> Content-Transfer-Encoding: 7bit
> Content-Type: text/plain;
> 	charset=us-ascii;
> 	format=flowed;
> 	delsp=yes
>
> "lpstat -o" lists all jobs that are active by default, but doesn't
> tell you the current state.
>
> You can write a short program using the cupsGetJobs function that will
> give you everything...
>
> On Jun 18, 2009, at 11:35 AM, Tony wrote:
>
> > Is there a way I can run a CUPS CLI command to poll all current
> > "active" print jobs and their states on a CUPS server?  I'm
> > interested in sending out a daily e-mail alert for any "active" jobs
> > which may be sitting in queues in a "stopped" or "held" state.  The
> > command would be run from the CUPS server itself (we don't really
> > use clients in our configuration).
> >
> > Thanks!
> >
> > Tony
> > _______________________________________________
> > cups mailing list
> > cups at easysw.com
> > http://lists.easysw.com/mailman/listinfo/cups
>
> ________________________________________
> Michael R Sweet, Senior Printing System Engineer
>
>
> --Apple-Mail-5-756032699
> Content-Transfer-Encoding: quoted-printable
> Content-Type: text/html;
> 	charset=us-ascii
>
> <html><head></head><body style=3D"word-wrap: break-word; =
> -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
> ">"lpstat -o" lists all jobs that are active by default, but doesn't =
> tell you the current state.<div><br></div><div>You can write a short =
> program using the cupsGetJobs function that will give you =
> everything...</div><div><br><div><div><div>On Jun 18, 2009, at 11:35 AM, =
> Tony wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
> type=3D"cite"><div>Is there a way I can run a CUPS CLI command to poll =
> all current "active" print jobs and their states on a CUPS server? =
>  I'm interested in sending out a daily e-mail alert for any =
> "active" jobs which may be sitting in queues in a "stopped" or "held" =
> state.  The command would be run from the CUPS server itself (we =
> don't really use clients in our =
> configuration).<br><br>Thanks!<br><br>Tony<br>____________________________=
> ___________________<br>cups mailing list<br><a =
> href=3D"mailto:cups at easysw.com">cups at easysw.com</a><br>http://lists.easysw=
> ..com/mailman/listinfo/cups<br></div></blockquote></div><br><div>
> <span class=3D"Apple-style-span" style=3D"border-collapse: separate; =
> color: rgb(0, 0, 0); font-family: Monaco; font-size: 12px; font-style: =
> normal; font-variant: normal; font-weight: normal; letter-spacing: =
> normal; line-height: normal; orphans: 2; text-align: auto; text-indent: =
> 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: =
> 0px; -webkit-border-horizontal-spacing: 0px; =
> -webkit-border-vertical-spacing: 0px; =
> -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
> auto; -webkit-text-stroke-width: 0px; "><span class=3D"Apple-style-span" =
> style=3D"border-collapse: separate; color: rgb(0, 0, 0); font-family: =
> Helvetica; font-size: 12px; font-style: normal; font-variant: normal; =
> font-weight: normal; letter-spacing: normal; line-height: normal; =
> orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; =
> widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; =
> -webkit-border-vertical-spacing: 0px; =
> -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
> auto; -webkit-text-stroke-width: 0px; "><div style=3D"word-wrap: =
> break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
> after-white-space; =
> "><div><div>________________________________________</div><div>Michael R =
> Sweet, Senior Printing System Engineer</div></div></div></span></span>
> </div>
> <br></div></div></body></html>=
>
> --Apple-Mail-5-756032699--
>

Thanks!




More information about the cups mailing list