X-Spam-Check-By: sourceware.org Message-ID: <001e01c71ede$12bd0920$84017ece@jabelxp> From: "Jay Abel" To: References: <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 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit 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: 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 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)" Sent: Wednesday, December 13, 2006 3:10 AM Subject: Re: print from xfig > Steven Woody wrote: >> On 12/5/06, Andrew Louie wrote: >>> Steven Woody 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: > > > > > -- > 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/