delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/13/12:43:22

X-Spam-Check-By: sourceware.org
Message-ID: <001e01c71ede$12bd0920$84017ece@jabelxp>
From: "Jay Abel" <jabel AT flex DOT com>
To: <cygwin AT cygwin DOT com>
References: <ed4892840612042202q31c5762fl6b6c0186aea60684 AT mail DOT gmail DOT com> <loom DOT 20061205T143629-714 AT post DOT gmane DOT org> <ed4892840612122211o12e77b06t5e8267a0ed345cb5 AT mail DOT gmail DOT com> <457FFBAF DOT 9060704 AT cygwin DOT com>
Subject: Re: print from xfig
Date: Wed, 13 Dec 2006 07:42:29 -1000
MIME-Version: 1.0
X-Mailer: Microsoft Outlook Express 6.00.2900.2869
X-IsSubscribed: yes
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

You can use "net use lpt1: \\\\printername" to map a network printer to 
a local parallel port.  Then define a new printer on the local machine 
that is connected to lpt1:  Then use the local share name (not the 
original network name) by setting the PRINTER environment variable. 
This works with lpr and a2ps, including the example given below. 
Apparently someone started working on lpr, and it does work for local 
printers, just doesn't work for network printers.  No claims made for 
lpq, however.

You can try to make the local port assignment permanent, but that won't 
survive the local network connection being repaired, disconnected, etc. 
I recommend creating an alias and/or command file.  You might just do 
the dos version in your autoexec so that it works most of the time.

Jay
----- Original Message ----- 
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Sent: Wednesday, December 13, 2006 3:10 AM
Subject: Re: print from xfig


> Steven Woody wrote:
>> On 12/5/06, Andrew Louie <louiea AT gmail DOT com> wrote:
>>> Steven Woody <narkewoody <at> gmail.com> writes:
>>>
>>> >
>>> > i can run xfig successuflly, but i can not print our network 
>>> > printer.
>>> > it reported:
>>> >
>>> > lpr: printer error: can't open 'd:\printersharename'
>>> >
>>> > what do i do? thank you.
>>> >
>>>
>>>
>>> Can you normally print with lpr?
>>>
>>> did you try: lpr -P//networkshare/printername
>>>
>>
>> i tried:  lpr -P//CNZUHPR01 myfile, but got
>> lpr: printer error: can't open '' for writing: The printer name is 
>> invalid.
>>
>> i am not pretty sure if the printer name is ok.  i got the name by
>> right click the network printer icon in the control panel then select
>> the 'properties'.  i know it's a HP LaserJet-2300DN and accessable to
>> me via our company's domain.
>
>
> See the FAQ:
>
> <http://cygwin.com/faq/faq-nochunks.html#faq.using.printing>
>
>
> -- 
> Larry Hall                              http://www.rfk.com
> RFK Partners, Inc.                      (508) 893-9779 - RFK Office
> 216 Dalton Rd.                          (508) 893-9889 - FAX
> Holliston, MA 01746
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019