This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: output to printer
- To: nbecker at fred dot net
- Subject: Re: output to printer
- From: Robert Lipe <robertlipe at usa dot net>
- Date: Thu, 5 Apr 2001 14:08:48 -0500
- Cc: gcc at gcc dot gnu dot org
- References: <3ACCBE09.AD4D161C@moene.indiv.nluug.nl>
Toon Moene wrote:
> nbecker@fred.net wrote:
>
> > > You cannot do that directly on Linux - you have to do something like:
>
> > > ./a.out | lpr
>
> You don't want users to log in as root just for the pleasure of doing:
>
> OPEN(UNIT=1, FILE='/dev/lp0')
> WRITE(UNIT=1, *) 'HELLO, WORLD'
> END
Even if you DID want the users to log in as root (boooooo), I wouldn't
want to use that system anyway. If you happened to be on a system where:
* more than one user may be printing something,
* printer is on a serial, usb, uucp, or network connection
* the printer handles multiple forms in the printer or needs input bin
commands
* even just wanted decent application response time while printing,
this approach would break. For the general purpose case, you really,
really, really want to send print jobs to the spooler and let it sort
these things out.
But this no longer has much to do with GCC development...
RJL