delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/07/14:39:12

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Mon, 7 Jun 2004 14:38:23 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Steven Read <s-read AT indstate DOT edu>
cc: cygwin AT cygwin DOT com
Subject: Re: PRINTER variable not exported in /etc/profile was: Printing under Cygwin on W2K
In-Reply-To: <s0c42d17.064@isugw.indstate.edu>
Message-ID: <Pine.GSO.4.58.0406071430420.7494@slinky.cs.nyu.edu>
References: <s0c42d17 DOT 064 AT isugw DOT indstate DOT edu>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

Steven,

Replies inline below.

On Mon, 7 Jun 2004, Steven Read wrote:

> Is there a "secret handshake" for http://... style printers? My printer
> is an IPP connection and lpr gives me an error message saying it cannot
> find http:\123.456.789.123:80\ipp. I have tried several different
> combinations of forward and back slashes but to no avail.

As far as I understand, Cygwin is able to access the Windows printers that
are either defined on your machine or shared via the Windows mechanisms.
Usually, whenever you have a printer with some type of connection on the
network, Windows needs to be aware of it to be able to print to it.  Do
Windows applications on your machine allow you to print to the printer
using the http://... style address, or do you need to refer to it using
another name?  If the latter, you'll need to use that same name with
Cygwin tools (e.g., "PRINTER='<printer name>' lpr <filename>").  If the
former, this feature is not implemented in Cygwin.

> I am running Cygwin 1.5.9(0.112/4/2) on a W2K box with Service Pack 4
> plus a bunch of hotfixes.
>
> Steven Read - 812/237-3362 - s-read AT indstate DOT edu
> Indiana State University
>
> >>> Olaf Föllinger<Olaf DOT Foellinger AT XXXX DOT XX> 06/04/2004 3:43:09 AM >>>

<http://cygwin.com/acronyms/#PCYMTNQREAIYR>

> On Thu, Jun 03, 2004 at 01:39:03PM -0400, Igor Pechtchanski wrote:
> > On Thu, 3 Jun 2004, Chris Carlson wrote:
> >
> > > Also according to the documentation, cygwin understands the double-slash
> > > form used in Windows.  Thus the following should work:
> > >
> > >         bash$  cat myfile.txt > //Dc1irv/laser1
> > >
> > > This returns:
> > >
> > >         bash: //Dc1irv/laser1: No such host or network path
> >
> > Nope, that shouldn't work.  I don't think you can redirect output to a
> > printer name even from the Windows console, much less from Cygwin.  In
> > any case, Cygwin doesn't treat printer shares as devices.

While I'm replying to this thread, I'd like to apologize for the above
misinformation.  Redirecting to the shared printer name works just fine,
as it turns out.

> > > So, what is the proper method for printing under cygwin?
> >
> > Either "lpr" or, if you want to get fancier, "a2ps" or "enscript".
> >       Igor
>
> lpr works just fine here with a minor problem:
>
> $ lpr textfile.txt
> lpr: no printer specified
>
> though the printer is specified in /etc/profile. But the printer
> variable isn't exported there so lpr cannot find it. Should this be
> fixed?

HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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