Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Fri, 4 Jun 2004 09:40:48 +0200
From: Olaf =?iso-8859-1?Q?F=F6llinger?= <Olaf.Foellinger@sesa.de>
To: cygwin@cygwin.com
Subject: PRINTER variable not exported in /etc/profile was: Printing under Cygwin on W2K
Message-ID: <20040604074048.GA2460@sesa.de>
Mail-Followup-To: cygwin@cygwin.com
References: <7D036BD3216A084DB1BD9D62BCEAF29049A414@mail1irv.inside.istor.com> <Pine.GSO.4.58.0406031326380.29912@slinky.cs.nyu.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <Pine.GSO.4.58.0406031326380.29912@slinky.cs.nyu.edu>
X-Request-PGP: http://www.foellinger.de/olaf.foellinger.asc
User-Agent: Mutt/1.5.6i
X-IsSubscribed: yes

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

 
Gruss Olaf Föllinger

-- 
Olaf Föllinger
Senior Consultant IT
S.E.S.A. Software und Systeme AG


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

