[cups.general] Grabbing Active Job States from Command Line (Possible?)

Michael Sweet msweet at apple.com
Thu Jun 18 11:53:45 PDT 2009


"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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cups.org/pipermail/cups/attachments/20090618/caab247c/attachment-0001.html>


More information about the cups mailing list