diff options
author | cvs2svn Import User <samba-bugs@samba.org> | 2002-08-17 21:11:14 +0000 |
---|---|---|
committer | cvs2svn Import User <samba-bugs@samba.org> | 2002-08-17 21:11:14 +0000 |
commit | c14200a853e90dbcec1861f03b72daeb24aa3dcf (patch) | |
tree | ee80b3edd8341d0de2304ef01ad6b1e8f285d4be /source/python/examples/spoolss/changeid.py | |
parent | 227472286f479bddfac7ea958b779fc4459a9e1e (diff) | |
parent | 291551d80711daab7b7581720bcd9a08d6096517 (diff) | |
download | samba-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-x | source/python/examples/spoolss/changeid.py | 29 |
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) |