[cups.development] [RFE] STR #2337: Ability to rename a printer queue via web or cli
Michael Sweet
mike at easysw.com
Mon Apr 9 11:07:10 PDT 2007
[STR Closed w/o Resolution]
This functionality has been requested before several times, but all before
we started using the STR database...
Anyways, we don't plan on adding a "rename printer" functionality to CUPS,
mainly because it causes a lot of issues that are hard (if not impossible)
to resolve, particularly in a networked environment. For example, renaming
a printer will require all clients to use the new name or lose all pending
jobs for the printer...
If you can put up with the transition and accounting issues, a small shell
script or program can implement a practical "rename printer" functionality
with the current release of CUPS, e.g.:
#!/bin/sh
#
# Usage: cupsrename.sh oldname newname
#
cupsdisable $1
lpadmin -p $2 -E -v `lpstat -v $1 | awk '{print $4}'` -i
/etc/cups/ppd/$1.ppd
for job in `lpstat -o $1 | awk '{print $1}'`; do
lpmove $job $2
done
lpadmin -x $1
Link: http://www.cups.org/str.php?L2337
Version: -feature
Fix Version: Will Not Fix
More information about the cups
mailing list