[cups.general] Bad device-uri scheme

Laszlo Papp lpapp at kde.org
Tue Jun 14 09:57:57 PDT 2011


Hi,

> You can try:
> DEVICE_URI=lpd://host-or-ip/queue /usr/lib/cups/backend/lpd 123 user title 1
> "" filename

That command worked just fine and I got the "/etc/hosts" file printed
out. Hence what is wrong with this command then: "lpadmin -p security
-v lpd://172.21.36.88/ps -E && lp -d security /etc/hosts"

This is the output of the working command you sent me:
DEVICE_URI=lpd://172.21.36.88/ps /usr/lib/cups/backend/lpd 123 user
title 1 "" /etc/hosts
STATE: +connecting-to-device
DEBUG: Looking up "172.21.36.88"...
DEBUG: Connecting to 172.21.36.88:515 for printer ps
INFO: Connecting to printer...
STATE: -connecting-to-device
INFO: Connected to printer...
DEBUG: Connected to 172.21.36.88:515 (IPv4) (local port 1023)...
DEBUG2: hrDeviceDesc="Xerox WorkCentre Pro 238, v1 Multifunction System"
DEBUG2: prtGeneralCurrentLocalization=1
DEBUG2: prtLocalizationCharacterSet=106
DEBUG2: prtMarkerSuppliesColorantIndex.1.1 = 1
DEBUG2: prtMarkerSuppliesColorantIndex.1.2 = 1
DEBUG2: prtMarkerSuppliesColorantIndex.1.3 = 1
DEBUG2: prtMarkerSuppliesColorantIndex.1.4 = 1
DEBUG2: prtMarkerSuppliesType.1.1 = 3
DEBUG2: prtMarkerSuppliesType.1.2 = 20
DEBUG2: prtMarkerSuppliesType.1.3 = 15
DEBUG2: prtMarkerSuppliesType.1.4 = 4
DEBUG2: prtMarkerSuppliesDescription.1.1 = "Toner Bottle CRU"
DEBUG2: prtMarkerSuppliesDescription.1.2 = "Xerographic CRU Module"
DEBUG2: prtMarkerSuppliesDescription.1.3 = "Fuser CRU Module"
DEBUG2: prtMarkerSuppliesDescription.1.4 = "Waste Toner Bottle CRU"
DEBUG2: prtMarkerSuppliesMaxCapacity.1.1 = 11880
DEBUG2: prtMarkerSuppliesMaxCapacity.1.2 = 222000
DEBUG2: prtMarkerSuppliesMaxCapacity.1.3 = 422000
DEBUG2: prtMarkerSuppliesMaxCapacity.1.4 = -2
DEBUG2: prtMarkerSuppliesLevel.1.1 = 2970
DEBUG2: prtMarkerSuppliesLevel.1.2 = 131876
DEBUG2: prtMarkerSuppliesLevel.1.3 = 389203
DEBUG2: prtMarkerSuppliesLevel.1.4 = -3
DEBUG2: prtMarkerColorantValue.1.1 = "black"
ATTR: marker-colors=#000000,#000000,#000000,#000000
ATTR: marker-names="Toner Bottle CRU","Xerographic CRU Module","Fuser
CRU Module","Waste Toner Bottle CRU"
ATTR: marker-types=toner,transferUnit,fuser,wasteToner
ATTR: marker-levels=25,59,92,-1
STATE: -media-low-report
STATE: +media-empty-warning
STATE: -toner-low-report
STATE: -toner-empty-warning
STATE: -door-open-report
STATE: -media-jam-warning
STATE: -input-tray-missing-warning
STATE: -output-tray-missing-warning
STATE: -marker-supply-missing-warning
STATE: -output-area-almost-full-report
STATE: -output-area-full-warning
DEBUG: lpd_command 02 ps
DEBUG: Sending command string (4 bytes)...
DEBUG: Reading command status...
DEBUG: lpd_command returning 0
DEBUG: Control file is:
HRM696
Puser
Jtitle
ldfA521RM696
UdfA521RM696
Ntitle
DEBUG: lpd_command 02 53 cfA521RM696
DEBUG: Sending command string (16 bytes)...
DEBUG: Reading command status...
DEBUG: lpd_command returning 0
INFO: Sending control file (53 bytes)
INFO: Control file sent successfully
DEBUG: lpd_command 03 26 dfA521RM696
DEBUG: Sending command string (16 bytes)...
DEBUG: Reading command status...
DEBUG: lpd_command returning 0
INFO: Sending data file (26 bytes)
INFO: Spooling LPR job, 0% complete...
INFO: Data file sent successfully
DEBUG2: prtMarkerSuppliesLevel.1.1 = 2970
DEBUG2: prtMarkerSuppliesLevel.1.2 = 131876
DEBUG2: prtMarkerSuppliesLevel.1.3 = 389203
DEBUG2: prtMarkerSuppliesLevel.1.4 = -3
ATTR: marker-levels=25,59,92,-1
PAGE: 1 1
helloworld:~#

Best Regards,
Laszlo Papp





More information about the cups mailing list