delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/17/03:18:32

Date: Thu, 17 Apr 1997 10:02:12 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Mark H. Wood" <mwood AT indyvax DOT iupui DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: Getting INFO M-x print-node to actually print?
In-Reply-To: <1997Apr16.130645.28288@indyvax.iupui.edu>
Message-ID: <Pine.SUN.3.91.970417100147.18537L-100000@is>
MIME-Version: 1.0

On 16 Apr 1997, Mark H. Wood wrote:

> Thing, but I haven't been able to find a command that will copy
> standard input to a file (e.g. LPT1:) without using redirection
> (which appears not to work in this context).

It might be that redirection didn't work for you because the name of
the printer as known to DOS is PRN or LPT1, not LPT1:.  The colon
fails DOS calls, so you should not use it.

> I gave up and wrote a tiny program to do that, but I thought I'd be less
> embarassed if I asked about other options before offering it to the world,
> rather than being told of them afterward.

I don't see anything wrong with this solution either.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019