[cups.general] IPP Subscriptions and Notifications
Jerome Alet
alet at librelogiciel.com
Fri Mar 30 23:15:12 PDT 2007
On Fri, Mar 30, 2007 at 04:06:47PM -0500, Jason Crawley wrote:
> accomplish this. If anyone could point me at a few examples or let
> me know if there is some tool I should be using apart from manually
> editing subscriptions.conf, that would be great.
You could download pkipplib from http://www.pykota.com/software/
This is a pure Python implementation of an IPP client library,
it is currently incomplete but includes a sample notifier application
and more importantly a generic tool to manage subscriptions.conf
from the command line, named 'pksubscribe', which help follows :
--- CUT ---
usage: pksubscribe [options] [subscriptions ids]
options:
-h, --help show this help message and exit
-v, --version show pksubscribe's version number and exit.
-c CUPS, --cups=CUPS the CUPS server to connect to. Defaults to
http://localhost:631
-d, --debug activate debug mode.
-X, --delete deletes subscriptions.
-p PRINTER, --printer=PRINTER
the printer's name for a printer subscription.
-j JOB, --job=JOB the job's id for a job subscripition.
-r RECIPIENT, --recipient=RECIPIENT
the recipient's uri.
-C CHARSET, --charset=CHARSET
the charset to use in notifications sent for this
subscription.
-L LANGUAGE, --language=LANGUAGE
the language to use in notifications sent for this
subscription.
-u USERDATA, --userdata=USERDATA
the user's data to use in notifications for this
subscription.
-U USERNAME, --username=USERNAME
the user's name to use when connecting to the CUPS
server.
-W PASSWORD, --password=PASSWORD
the user's password to use when connecting to the CUPS
server.
-E EVENTS, --events=EVENTS
a comma separated list of events to subscribe to.
-P PULLMETHOD, --pullmethod=PULLMETHOD
the optional pull method's name.
-D DURATION, --duration=DURATION
the duration of the subscription.
-I INTERVAL, --interval=INTERVAL
the time interval of the subscription.
--- CUT ---
hoping this helps.
bye
Jerome Alet
More information about the cups
mailing list