summaryrefslogtreecommitdiffstats
path: root/source/python/examples/spoolss/changeid.py
diff options
context:
space:
mode:
authorcvs2svn Import User <samba-bugs@samba.org>2002-08-17 21:11:14 +0000
committercvs2svn Import User <samba-bugs@samba.org>2002-08-17 21:11:14 +0000
commitc14200a853e90dbcec1861f03b72daeb24aa3dcf (patch)
treeee80b3edd8341d0de2304ef01ad6b1e8f285d4be /source/python/examples/spoolss/changeid.py
parent227472286f479bddfac7ea958b779fc4459a9e1e (diff)
parent291551d80711daab7b7581720bcd9a08d6096517 (diff)
downloadsamba-3.0.0alpha19.tar.gz
samba-3.0.0alpha19.tar.xz
samba-3.0.0alpha19.zip
This commit was manufactured by cvs2svn to create tagsamba-3.0.0alpha19
'release-3-0-alpha19'.
Diffstat (limited to 'source/python/examples/spoolss/changeid.py')
-rwxr-xr-xsource/python/examples/spoolss/changeid.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/source/python/examples/spoolss/changeid.py b/source/python/examples/spoolss/changeid.py
deleted file mode 100755
index b2345094edc..00000000000
--- a/source/python/examples/spoolss/changeid.py
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/python
-#
-# Display the changeid for a list of printers given on the command line
-#
-
-import sys, 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)