diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-02-21 11:08:10 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2004-02-21 11:08:10 +0000 |
commit | a6a935d937495e83652d70fef57badf27537428d (patch) | |
tree | 1b0b50c33ce525c558457d2a541b78da1d93e028 /source4/python/examples/spoolss/changeid.py | |
parent | e967ff114e767113f0f98d98db628ffa204314eb (diff) | |
download | samba-a6a935d937495e83652d70fef57badf27537428d.tar.gz samba-a6a935d937495e83652d70fef57badf27537428d.tar.bz2 samba-a6a935d937495e83652d70fef57badf27537428d.zip |
remove the python stuff, this will be rewritten on top of libsmb.so
and maintained in a external tree.
(discussed with tpot)
metze
(This used to be commit 54a01008413e1f03a49f5d6f9e2f98c8b8d1c87a)
Diffstat (limited to 'source4/python/examples/spoolss/changeid.py')
-rwxr-xr-x | source4/python/examples/spoolss/changeid.py | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/source4/python/examples/spoolss/changeid.py b/source4/python/examples/spoolss/changeid.py deleted file mode 100755 index 85fe0efe8a..0000000000 --- a/source4/python/examples/spoolss/changeid.py +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/python -# -# Display the changeid for a list of printers given on the command line -# -# Sample usage: -# -# changeid.py '\\win2kdc1\magpie' -# - -import sys -from samba import spoolss - -if len(sys.argv) == 1: - print "Usage: changeid.py <printername>" - sys.exit(1) - -for printer in sys.argv[1:]: - - # Open printer handle - - try: - hnd = spoolss.openprinter(printer) - except: - print "error opening printer %s" % printer - sys.exit(1) - - # Fetch and display changeid - - info = hnd.getprinter(level = 0) - print info["change_id"] - - # Clean up - - spoolss.closeprinter(hnd) |