delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/04/11:34: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
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <4.3.1.2.20020304111925.024c6628@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.1
Date: Mon, 04 Mar 2002 11:22:51 -0500
To: Brian Salter-Duke <b_duke AT octa4 DOT net DOT au>,
fergus at bonhard dot uklinux dot net <fergus AT bonhard DOT uklinux DOT net>
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: Printing locally
Cc: cygwin AT cygwin DOT com
In-Reply-To: <20020304095404.A1512@BSALTERDUKE1>
References: <000501c1c2a1$26596300$6fc82486 AT medschool DOT dundee DOT ac DOT uk>
<000501c1c2a1$26596300$6fc82486 AT medschool DOT dundee DOT ac DOT uk>
Mime-Version: 1.0

At 07:24 PM 3/3/2002, Brian Salter-Duke wrote:
>On Sun, Mar 03, 2002 at 10:49:53AM -0000, fergus at bonhard dot uklinux dot net wrote:
> > What about this? Any good?
> > If the file a.txt is DOS terminated, try
> >     cp a.txt prn
> > OR
> >     cat a.txt > prn
> > and if a.txt is Unix-terminated, try
> >     cat a.txt | unix2dos > prn
> > Fergus
>
>This was a good suggestion but it still does not work. It just does
>nothing as does directing the output to PRINT or LPT1.
>
>The file a.txt if put into Notepad either in dos or unix format prints
>fine.


Hm, then there must be some issue locally.  I have used both 

cat file.txt > prn

and

cat file.txt > //<machine name>/<printer share name>

with no problems in the past.  If one or both of these don't work for you,
you may be stuck trying to debug it.  In anticipation of your next question,
you might try running one or both of these with 'strace'.  See strace --help
for more details of the options.  The output may give you an idea of where 
things are going wrong for you.



Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


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