Mail Archives: cygwin/2006/12/13/12:43:22
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 -