delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/18/16:38:55

From: "Chris A. Triebel" <cat AT sun4 DOT iol DOT unh DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Getting INFO M-x print-node to actually print?
Date: Fri, 18 Apr 1997 07:51:51 -0400
Organization: University of New Hampshire - Durham, NH
Lines: 69
Message-ID: <Pine.SUN.3.91.970418074643.26372A-100000@sun4.iol.unh.edu>
References: <1997Apr16 DOT 130645 DOT 28288 AT indyvax DOT iupui DOT edu> <3355CDC4 DOT 6A7F AT NO DOT SPAM DOT cs DOT com>
NNTP-Posting-Host: sun4.iol.unh.edu
Mime-Version: 1.0
In-Reply-To: <3355CDC4.6A7F@NO.SPAM.cs.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I was just thinking about this problem.  I haven't tried it, I am at 
work, but would this work?  I seem to remember a note about 'standard print'
somewhere, so all we need to do is write a program that will map onto 
standard print.  ( of course this may not run in the background the way 
print.com does ).  But it may be useful for those of us that don't want 
to bother with dumping to a file.

int main(void)
{
	int c;

	while(c=getchar()!=EOF)
	{
		putc(c,stdprn);
	}

return 0;
}
		
Just a thought ...
cat

On Thu, 17 Apr 1997, John M. Aldrich wrote:

> Date: Thu, 17 APR 1997 07:14:12 +0000 
> From: John M. Aldrich <fighteer AT NO DOT SPAM DOT cs DOT com>
> To: "Mark H. Wood" <mwood AT indyvax DOT iupui DOT edu>
> Newgroups: comp.os.msdos.djgpp
> Subject: Re: Getting INFO M-x print-node to actually print? 
> 
> Mark H. Wood wrote:
> > 
> > Silly newbie question:  what is everybody using to support INFO's
> > M-x print-node command?  It wants to pipe into a command that will Do The Right
> > 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).
> 
> This is straight out of my 'djgpp.env':
> 
> INFO_PRINT_COMMAND=%/>;INFO_PRINT_COMMAND%cat >c:\info.prn
> 
> This redirects the output of the print-node command to the file
> 'info.prn' in my C: root directory.  At that point, I can print it or
> edit it or whatever.  The extra junk at the beginning allows me to
> override the setting with a preexisting environment variable.
> 
> -- 
> John M. Aldrich <fighteer AT cs DOT com>                      
> 
> * Anything that happens, happens.
> * Anything that, in happening, causes something else to happen,
>   causes something else to happen.
> * Anything that, in happening, causes itself to happen again, happens
>   again.
> * It doesn't necessarily do it in chronological order, though.
>  
>                                        --- Douglas Adams
> 
> 

UNH InterOperability Lab
Network Management Consortium
(603)862-2060
-------------------------------------------------------------------------------
"It's not the programming languages that will kill you, its the syntax."
"Digging a hole with a bulldozer is much more effective, unless you only know
how to use a shovel."

- Raw text -


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