This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

lpr printer name error; posix path to win32


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]