www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT 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=pEkeOFwVIYkAjEg/ | |
UB0kskK9tPvQof5sJthfsHkIMjXqtFIaa79MSUqM87kigVJ9iTvMYMExG3JxbOt/ | |
lra7kSI36Lgjve+ew6VEa5TjESX55OOIvuffGZ58lEV81Nx90OuGDaQyZamwrsJf | |
oZCCQ8NgBRhuYrcldDUTXsfRKOU= | |
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=GSI2opyVhju3Kq/C+H/ysA | |
ZbskI=; b=WWWVcFznLw7RDYKvJznnKrkSoVw8k8ObzGe8VLTyfoW86MjkEThpUL | |
nsiQtfg7fJmNYAENtG74NlrXy8vdgRvLXzwqRoj6R1HPzVYu/GMGC72leRLLXZ3N | |
QTQrFtZ5+DpkVSeynKfbxN71bzpbBGSwsckRC0c25sv7fuXL+lP5I= | |
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 |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-2.0 required=5.0 tests=AWL,BAYES_50,GIT_PATCH_2,LOTS_OF_MONEY,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*RU:sk:omr-m01, Hx-spam-relays-external:sk:omr-m01, HX-HELO:sk:omr-m01, rod |
X-HELO: | omr-m014e.mx.aol.com |
Reply-To: | <rodney DOT barnhart AT verizon DOT net> |
From: | "Rodney Barnhart" <rodney DOT barnhart AT verizon DOT net> |
To: | <cygwin AT cygwin DOT com> |
References: | <000001d3abe9$f7ca3430$e75e9c90$@verizon.net> <21739473 DOT 20180223014726 AT yandex DOT ru> |
In-Reply-To: | <21739473.20180223014726@yandex.ru> |
Subject: | RE: Printing (lpr, print, cat > <various names> returns printer not valid or no longer available |
Date: | Thu, 22 Feb 2018 21:21:56 -0500 |
Message-ID: | <000001d3ac4d$13bda010$3b38e030$@verizon.net> |
MIME-Version: | 1.0 |
x-aol-global-disposition: | G |
x-aol-sid: | 3039ac1ade8d5a8f7ac50107 |
X-AOL-IP: | 71.185.73.19 |
X-IsSubscribed: | yes |
Andrey, Thanks for responding. I have to apologize in advance. I don't know the answer to your question. It's the lpr that executes under the bash system once CYGwin starts. I did a search for lpr.exe under windows and found one under an obscure windows directory. When I tried to execute it said it can't run on my PC? Windows doesn't seem to have a native lpr? I don't know how to find the Cygwin lpr that I'm using. I remind you that print, catting to $PRINTER don't work either. If you tell me how I'll find which lpr is running under bash in Cygwin. Thanks Rod -----Original Message----- From: Andrey Repin [mailto:anrdaemon AT yandex DOT ru] Sent: Thursday, February 22, 2018 5:47 PM To: rodney DOT barnhart AT verizon DOT net; cygwin AT cygwin DOT com Subject: Re: Printing (lpr, print, cat > <various names> returns printer not valid or no longer available Greetings, rodney DOT barnhart AT verizon DOT net! > I have read the FAQs and 100's on general web page discussions re > printing and they all talk about \\ <file://%3cserver%3e/%3cprinter> > <server>\<printer> as the answer, but I only get the not valid response. > I've tried many varients of \\, //, "", '' and escaping 2, 4 etc > times and it doesn't make any difference. I have only one question: are you using Cygwin's or Windows `lpr' ? > > I am running Windows 10 and can print to the printers in the device > list in Windows without problems from Windows. The printer in question > is Postscript capable HP print on the local network with no particular > "server" that I am aware of. > I even tried making a shorter printer name with no spaces or special > characters, The OS sent that name when I started Cygwin, but it again > didn't make any difference. > Here is some information, any help would be greatly appreciated. > > I find it hard to believe I'm the only one having this problem. > > By the way I installed "everything" when I installed Cygwin, took > almost 5 hours - I'm very patient, but everything worked fine and it > used about 150+G of disk space, no problem. > > Here is some information, any help would be greatly appreciated. > $ lpr -D > Windows printer name = 'NPIFA1F16 (HP Color LaserJet CP2025n)' > isWindows9x = 0, isWindows2K_NT4 = 1 > Printer name: 'NPIFA1F16 (HP Color LaserJet CP2025n)', Port name: > 'WSD-4c342c10-53d8-4569-8ddf-131b36eb360b.0063' > Printer name: 'Microsoft XPS Document Writer', Port name: 'PORTPROMPT:' > Printer name: 'Microsoft Print to PDF', Port name: 'PORTPROMPT:' > Printer name: 'HP ePrint + JetAdvantage', Port name: 'HP ePrint' > Printer name: 'Fax', Port name: 'SHRFAX:' > > rodne AT Rodney-HP-Envy ~ > $ lpr -d \\192.168.0.122\$PRINTER .bashrc > lpr: printer error: can't open '\192.168.0.122$PRINTER' for writing: > The printer name is invalid. > > rodne AT Rodney-HP-Envy ~ > $ lpr -d '\\192.168.0.122\NPIFA1F16 (HP Color LaserJet CP2025n)' > .bashrc > lpr: printer error: can't open '\\192.168.0.122\NPIFA1F16 (HP Color > LaserJet CP2025n)' for writing: The printer name is invalid. > > Can't initialize "prn", print doesn't work either, copying directly to > the printer doesn't work, cating and pipling to lpr doesn't work > > Rod (2/22/18) > > -- > 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 -- With best regards, Andrey Repin Friday, February 23, 2018 01:44:54 Sorry for my terrible english... -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |