From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18752 invoked by alias); 5 Mar 2002 09:24:09 -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 18470 invoked from network); 5 Mar 2002 09:23:45 -0000 Received: from unknown (HELO smtp2.octa4.net.au) (203.112.96.25) by sources.redhat.com with SMTP; 5 Mar 2002 09:23:45 -0000 Received: (qmail 25937 invoked from network); 5 Mar 2002 09:23:49 -0000 Received: from dwn-dialport192.octa4.net.au (HELO octa4.net.au) (203.112.97.192) by smtp2.octa4.net.au with SMTP; 5 Mar 2002 09:23:49 -0000 Received: by octa4.net.au (sSMTP sendmail emulation); Tue, 5 Mar 2002 18:51:38 +0930 Date: Tue, 05 Mar 2002 01:24:00 -0000 From: Brian Salter-Duke To: "Larry Hall (RFK Partners, Inc)" Cc: cygwin@cygwin.com Subject: Re: Printing locally Message-ID: <20020305185137.A1292@BSALTERDUKE1> References: <000501c1c2a1$26596300$6fc82486@medschool.dundee.ac.uk> <000501c1c2a1$26596300$6fc82486@medschool.dundee.ac.uk> <20020304095404.A1512@BSALTERDUKE1> <4.3.1.2.20020304111925.024c6628@pop.ma.ultranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <4.3.1.2.20020304111925.024c6628@pop.ma.ultranet.com>; from lhall@rfk.com on Mon, Mar 04, 2002 at 11:22:51AM -0500 X-SW-Source: 2002-03/txt/msg00240.txt.bz2 On Mon, Mar 04, 2002 at 11:22:51AM -0500, Larry Hall (RFK Partners, Inc) wrote: > 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 I have noticed that if you have the printer window open, it has a brief message saying the file has no name but is being spooled. Nothing prints. > and > > cat file.txt > /// Does this work only if the printer is remote. I replaced by BSALTERDUKE1 which is what the printer test page saying machine name is and by CanonBJC-1000SP which is what the same page says is the printer name. The printer is local. It reports that it can not find that node. > 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. I tried all sorts of options and got no output with any of them. I private message from someone else suggested:- notepad /p file.txt This works! Cheers, Brian. -- Brian Salter-Duke (Brian Duke) b_duke@octa4.net.au Honorary Fellow in Chemistry, NT University, Darwin, NT 0909, Australia. Phone 08-89881600. Fax 08-89881302. http://lacebark.ntu.edu.au/ -- 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/