From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28693 invoked by alias); 4 Mar 2002 16:26:47 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Received: (qmail 28537 invoked from network); 4 Mar 2002 16:26:34 -0000 Received: from unknown (HELO ligarius-fe0.ultra.net) (146.115.8.189) by sources.redhat.com with SMTP; 4 Mar 2002 16:26:34 -0000 Received: from enterprise-e.rfk.com (207-172-102-239.s1001.apx1.sbo.ma.dialup.rcn.com [207.172.102.239]) by ligarius-fe0.ultra.net (8.8.8/ult/n26500/mtc.v2) with ESMTP id LAA22322; Mon, 4 Mar 2002 11:26:17 -0500 (EST) Message-Id: <4.3.1.2.20020304111925.024c6628@pop.ma.ultranet.com> X-Sender: lhall@pop.ma.ultranet.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Mon, 04 Mar 2002 08:26:00 -0000 To: Brian Salter-Duke , fergus at bonhard dot uklinux dot net From: "Larry Hall (RFK Partners, Inc)" Subject: Re: Printing locally Cc: cygwin@cygwin.com In-Reply-To: <20020304095404.A1512@BSALTERDUKE1> References: <000501c1c2a1$26596300$6fc82486@medschool.dundee.ac.uk> <000501c1c2a1$26596300$6fc82486@medschool.dundee.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-SW-Source: 2002-03/txt/msg00190.txt.bz2 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 > /// 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@rfk.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/