www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/30/18:23:00

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
From: "Tim Beuman" <timb AT cdvinc DOT com>
To: "Cygwin AT Cygwin. Com" <cygwin AT cygwin DOT com>
Cc: "Jim George" <jim DOT george AT blueyonder DOT co DOT uk>
Subject: RE: printing from within Cygwin
Date: Fri, 30 Aug 2002 15:22:10 -0700
Message-ID: <GFEAKACMDNLNLPNMIFFLOEJLCPAA.timb@cdvinc.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
In-Reply-To: <00b001c25070$d4708ba0$0600a8c0@JIMGEORGE>
Importance: Normal
X-Authenticated-Sender: timb AT cdvinc DOT com
X-Return-Path: timb AT cdvinc DOT com
X-MDaemon-Deliver-To: cygwin AT cygwin DOT com

To be honest, I don't know. I tried a simple text file (no postscript)
myself without problems. Our network printer understands postscript and
plain text files and makes the distinction itself (I can sent both plain
text and postsript files and both types are printed properly). I don't know
whether your printer accepts plain text files or only accepts postscript
files. I'm not sure if I can be of any help in this aspect.

If the printer only accepts postscript, 'enscript' might be useful.

Tim

-----Original Message-----
From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf
Of Jim George
Sent: Friday, August 30, 2002 03:02 PM
To: cygwin AT cygwin DOT com
Subject: Re: printing from within Cygwin


Tim,

    when I try that with a networked Epson Photo printer to print a simple
text file, I get nothing but a form feed.

    Is this a postscript problem or what, do you think?

Jim
----- Original Message -----
From: "Tim Beuman" <timb AT cdvinc DOT com>
To: "Cygwin AT Cygwin. Com" <cygwin AT cygwin DOT com>
Cc: <Fred_Smith AT computrition DOT com>
Sent: Friday, August 30, 2002 9:21 PM
Subject: RE: printing from within Cygwin


> I am using "lpr -P \\\\<computer>\\<printer> <file>" to print on a network
> printer.
> I guess the same construct works on a local printer too (using the local
> computer's name)?
>
> Tim
>
> -----Original Message-----
> From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf
> Of Fred_Smith AT computrition DOT com
> Sent: Friday, August 30, 2002 12:42 PM
> To: Rick Rankin
> Cc: cygwin AT cygwin DOT com
> Subject: Re: printing from within Cygwin
>
>
> Rick, thanks for the reply.
>
> At the moment I'm using NT4.x. In the future it could be nearly anything,
> but I'm going to try to constrain it to nothing less than NT 4.x.
>
> I'm using whatever the lpr command is that I got when I installed cygwin,
I
> don't see any options anywhere to change that. In fact I don't even see
lpr
> listed in any of the cygwin info on the web page, so I'm not at all sure
> what it is.
>
> 'which lpr' shows /usr/bin/lpr
> and "ls -l /usr/bin/lpr" shows lpr.exe to be 7680 bytes.
>
> As to which printer, I'd like to (at a minimum) be able to print to the
> NT-defined default printer, but better would be to figure out how lpr maps
> into windows printers so I can tell it which printer to actually use.
>
> As you may be able to tell I'm not real familiar with either Cygwin, or
> NT., so the NT printing susbystem is largely a black hole to me.
>
>
>
>
>
> Rick Rankin <rick_rankin AT yahoo DOT com> on 08/30/2002 03:21:51 PM
>
> To:   Fred Smith/Computrition, cygwin AT cygwin DOT com
> cc:
> Subject:  Re: printing from within Cygwin
>
>
>
>
> Which lpr are you using, which OS (9x or NT/2K/XP), and are you trying to
> print
> to a locally attached or a network printer?
> --Rick
> --- Fred_Smith AT computrition DOT com wrote:
> > Trying to figure out how to print from a Cywin (console) app.
> >
> > Porting a Linux app to cygwin. On Linux it uses popen() to pipe output
to
> a
> > shellscript which in turn cats its input to lpr (it may do other things,
> > and may transform the data, but that's the ultimate goal).
> >
> > trying to figure out how to do something akin to that under cygwin.
> >
> > Invoking "lpr <filename>" at the command prompt comes back with an error
> > message:
> >
> >      can't open 'prn' for writing.
> >
> >
> > Advice would be appreciated. (I hope you're not going to tell me I need
> to
> > learn all about the innards of windoze printing!)
> >
> > Thanks!
> >
> > Fred
> >
> >
> >
> > --
> > Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> > Bug reporting:         http://cygwin.com/bugs.html
> > Documentation:         http://cygwin.com/docs.html
> > FAQ:                   http://cygwin.com/faq/
> >
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> http://finance.yahoo.com
>
>
>
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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