delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/04/13/17:42:37

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,TW_PC
X-Spam-Check-By: sourceware.org
From: "Rockefeller, Harry" <Harry DOT Rockefeller AT flightsafety DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Date: Fri, 13 Apr 2012 17:42:02 -0400
Subject: lpr printer name error; posix path to win32
Message-ID: <3185EFAF9C8F7B4E9DBDF56829BF7C782A43C20717@srv060ex01.ssd.fsi.com>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q3DLgW3m018077

A week ago I was able to print using lpr filename.
But it has been broken for a few days now.
I have been looking at this month's archive and have not seen
any discussion on this.

Before the latest cygutils was released I got an error that said
printer name 'garbage characters' doesn't exist.

After updating to cygutils-1.4.10-1 today the error message has changed (See below).

I can print using the lpr '-D' option but not without. (See below.)
Maybe the '-D' option sends my print job directly to the printer port address
bypassing the queue perhaps?

$ uname -a
CYGWIN_NT-5.1 HARRYR-PC 1.7.13(0.260/5/3) 2012-04-05 12:43 i686 Cygwin
  [ I can provide more information if needed.]

$ echo $PRINTER
\\srv060print\hpcj1

$ lpr foo
lpr: error converting posix path to win32 (Input/output error)

$ lpr -D foo
lpr: error converting posix path to win32 (Input/output error)

$ lpr -d$(echo $PRINTER) foo
lpr: error converting posix path to win32 (Input/output error)

$ lpr -D -d$(echo $PRINTER) foo
Windows printer name = '\\srv060print\hpcj1'
isWindows9x = 0, isWindows2K_NT4 = 1
...
Printer name: '\\srv060print\hpcj1', Port name: '10.xx.xx.201'
...
$

[The last command worked]

$ /cygdrive/c/WINDOWS/system32/lpr.exe -Ssrv060print -Phpcj1 junk

also works.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019