delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/31/11:31:48

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Thu, 31 Jul 2003 10:31:32 -0500
From: Joshua Daniel Franklin <joshuadfranklin AT yahoo DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: "Using cygwin Effectively with Windows" -- Draft of new User's Guide section
Message-ID: <20030731103132.A25281@ns1.iocc.com>
References: <20030731025919 DOT GA6722 AT redhat DOT com> <20030731035223 DOT 32173 DOT qmail AT web21409 DOT mail DOT yahoo DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5.1i
In-Reply-To: <20030731035223.32173.qmail@web21409.mail.yahoo.com>; from rick_rankin@yahoo.com on Wed, Jul 30, 2003 at 08:52:23PM -0700

> > On Wed, Jul 30, 2003 at 09:41:51PM -0500, Joshua Daniel Franklin wrote:
> > >backslash notation (\\COMPUTER\Printer Share), which must be escaped
> > >from shells such as bash (\\\\COMPUTER\\Printer Share).  If you have a
> > 
> > Rather than talk about escaping backslashes, why not just use
> > //computer/printer ?
> > 

On Wed, Jul 30, 2003 at 08:52:23PM -0700, Rick Rankin wrote:

> OK, so I need to read *all* my messages before replying...

That's alright, I didn't just miss this one, but the whole updated
lpr. I saw some posts in the last couple of months about updating your 
lpr in cygutils, but I thought it was just something still planned for 
the future. Hannu telling me to check the man page clued me in. It
had all the information I really needed.

Here's the update:

--BEGIN
There are several options for printing from Cygwin, including the
lpr found in cygutils (not to be confused with the native Windows
lpr.exe). The easiest way to use cygutils' lpr is to specify a default
device name in the PRINTER environment variable. You may also specify
a device on the command line with the -d or -P options, which will
override the environment variable setting. A device name may be a UNC
path (\\server_name\printer_name), a reserved DOS device name (prn,
lpt1), or a local port name that is mapped to a printer share. Note that
forward slashes may be used in a UNC path (//server_name/printer_name),
which is helpful when using lpr from a shell that uses the backslash as
an escape character. No formatting is done; data is sent raw. If your
printer supports PostScript, packages such as a2ps and enscript can
prepare text files for printing. The ghostscript package also provides
some translation from PostScript to various native printer languages
(a native Windows application for printing PostScript, gsprint, is
available from the GhostScript website).
--END

--
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