Web lists-archives.com

RE: Printing (lpr, print, cat > <various names> returns printer not valid or no longer available




From: cygwin-owner@xxxxxxxxxx [mailto:cygwin-owner@xxxxxxxxxx] On Behalf Of
Rodney Barnhart
Sent: Thursday, February 22, 2018 9:22 PM
To: cygwin@xxxxxxxxxx
Subject: RE: Printing (lpr, print, cat > <various names> returns printer not
valid or no longer available

Andrey,
2/23/2018 update
Did you "find" it in WinSxS cache?
Yes but that's the one that won't execute on Windows 10.
It's the same on the machine with Cygwin installed and another windows 10
machine without Cygwin installed, and responds the same way from Windows -
can't run on PC.

On the Cygwin terminal:
rodne@Rodney-HP-Envy ~
$ which lpr
/usr/bin/lpr

rodne@Rodney-HP-Envy ~
$ cygcheck lpr
Found: C:\cygwin64\bin\lpr.exe
Found: C:\cygwin64\bin\lpr.exe
C:\cygwin64\bin\lpr.exe
  C:\cygwin64\bin\cygwin1.dll
    C:\windows\system32\KERNEL32.dll
      C:\windows\system32\ntdll.dll
      C:\windows\system32\KERNELBASE.dll
  C:\cygwin64\bin\cyggcc_s-seh-1.dll
  C:\cygwin64\bin\cygstdc++-6.dll
  C:\windows\system32\WINSPOOL.DRV
    C:\windows\system32\msvcrt.dll
    C:\windows\system32\IPHLPAPI.DLL
    C:\windows\system32\bcrypt.dll

rodne@Rodney-HP-Envy ~
$ uname -a
CYGWIN_NT-10.0 Rodney-HP-Envy 2.10.0(0.325/5/3) 2018-02-02 15:16 x86_64
Cygwin

rodne@Rodney-HP-Envy ~
$ bash -version
GNU bash, version 4.4.12(3)-release (x86_64-unknown-cygwin) Copyright (C)
2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.lpr

rodne@Rodney-HP-Envy /usr/bin
$ lpr -lP '//192.168.0.122/NPIA1F16 (HP Color LaserJet CP2025n)' .bashrc
lpr: printer error: can't open '\\192.168.0.122\NPIA1F16 (HP Color LaserJet
CP2025n)' for writing: The specified network name is no longer available.

If I use wordpad on the windows side and open the .bashrc file I can print
it fine on the network printer.

Thanks for your help

Rod


--
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