Mail Archives: djgpp/1997/04/18/16:38:55
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 -