Client polling - determine last and next update

Michael Sweet mike at easysw.com
Mon Mar 26 06:55:36 PDT 2007


angelb wrote:
> Hello all.
> 
> Is there a simple and accurate way to determine when the client last
> polled the servers for update and when the next poll will occur?

No simple way, no.

> One way I know of, but uncertain of accuracy, is by looking at the
> printcap file time-stamp and use that to determine the next poll based
> on the poll interval.

That'll get you an approximation that's probably good enough for your
use case.  Don't try it if you have local print queues, though...

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Document Software          http://www.easysw.com




More information about the cups mailing list