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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=N07X2VADkZtCLeLo hBqwhjvI+9veeEu4hEZhaTgOOTTxN3y6fPbTmp5qJktqBJ90Rq2y2nydeMOrvY0d j663UQ3qjlYm/CK/m2mfAICJW2irZkvwI7koWOEGbOTiu9D9AKPtNyfTQpEFcUL1 mpaPDfp+0yfhIXsBYilpFeEahIQ= 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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=livgXEPMPWzBkVBjh/k4OU Jycgo=; b=ZoVKRNZpvfRlj4yDBR+6N2pcbMh0EvCf0+DS1amfoNws9/Wa8x48oa famsmwz6DZy20tS+qv+DsSODdv5JEyUoR/z8E6uvFV93vNeDBlaCVuoeUWLGVESq lW3D7haVXmxjhU122mNQaAq48xP9NfHDHFyeJlCC7woB3m+zJvV2w= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=4.0 required=5.0 tests=BAYES_50,FREEMAIL_FROM,KAM_THEBAT,LOTS_OF_MONEY,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*F:D*yandex.ru, rod, H*M:yandex, 100's X-HELO: forward105p.mail.yandex.net Authentication-Results: smtp1o.mail.yandex.net; dkim=pass header.i=@yandex.ru Date: Fri, 23 Feb 2018 01:47:26 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <21739473.20180223014726@yandex.ru> To: rodney DOT barnhart AT verizon DOT net, cygwin AT cygwin DOT com Subject: Re: Printing (lpr, print, cat > returns printer not valid or no longer available In-Reply-To: <000001d3abe9$f7ca3430$e75e9c90$@verizon.net> References: <000001d3abe9$f7ca3430$e75e9c90$@verizon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 \\ > \ 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