X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:reply-to:from:to:references:in-reply-to
	:subject:date:message-id:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=Blqss8QKULUOPcQn
	qq5EVGJdwQTWgN/sAklY4vbvLc2ht4bjqI0604rtngwKsaMF35RS185fTuGyF2b2
	3n/THnsD8L0pFI+N//W3dvGfQCUFs93pLYf9vr9FlBGpzRLGqdygqfsDvyZ0LVfJ
	M+R3NkOVRQm+eU7nyYwSEuPRIeE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:reply-to:from:to:references:in-reply-to
	:subject:date:message-id:mime-version:content-type
	:content-transfer-encoding; s=default; bh=F9r6dOnfwz5fXEOmgKnhAJ
	ykAHI=; b=QaSiXGcHMON86a5YDpZtL5fjvcv96FZG96fc5sYVPOBTZ9TLHG52ne
	T2HLJZEy0e3pfh0PlB9pWH2FN+kueBfhydGupz8/BaiBOFPWuBBSOgQwar2VJw6I
	9xEJsmZxRn2iZ0sh0rtnmW6EdgTrwWAn09QTFnWcWsFOzNZVSRwtw=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.8 required=5.0 tests=AWL,BAYES_00,CYGWIN_OWNER_BODY,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=H*UA:Outlook, H*x:Outlook, H*UA:Microsoft, H*x:Microsoft
X-HELO: omr-m008e.mx.aol.com
Reply-To: <rodney.barnhart@verizon.net>
From: <rodney.barnhart@verizon.net>
To: <cygwin@cygwin.com>
References: <000001d3abe9$f7ca3430$e75e9c90$@verizon.net> <21739473.20180223014726@yandex.ru> <000001d3ac4d$13bda010$3b38e030$@verizon.net> <000001d3ace2$0cab84f0$26028ed0$@verizon.net>
In-Reply-To: <000001d3ace2$0cab84f0$26028ed0$@verizon.net>
Subject: RE: Printing (lpr, print, cat > <various names> returns printer not valid or no longer available
Date: Sun, 25 Feb 2018 09:28:21 -0500
Message-ID: <000001d3ae44$e3453890$a9cfa9b0$@verizon.net>
MIME-Version: 1.0
Content-Type: text/plain;	charset="us-ascii"
Content-Transfer-Encoding: 7bit
x-aol-global-disposition: G
x-aol-sid: 3039ac1adfcd5a92c8063876
X-AOL-IP: 71.185.73.19
X-IsSubscribed: yes

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

