This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Printing (lpr, print, cat > <various names> returns printer not valid or no longer available
- From: <rodney dot barnhart at verizon dot net>
- To: <cygwin at cygwin dot com>
- Date: Sun, 25 Feb 2018 09:28:21 -0500
- Subject: RE: Printing (lpr, print, cat > <various names> returns printer not valid or no longer available
- Authentication-results: sourceware.org; auth=none
- References: <000001d3abe9$f7ca3430$e75e9c90$@verizon.net> <21739473.20180223014726@yandex.ru> <000001d3ac4d$13bda010$3b38e030$@verizon.net> <000001d3ace2$0cab84f0$26028ed0$@verizon.net>
- Reply-to: <rodney dot barnhart at verizon dot net>
From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On Behalf Of
Rodney Barnhart
Sent: Thursday, February 22, 2018 9:22 PM
To: cygwin@cygwin.com
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