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: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Thu, 05 Apr 2001 20:48:41 +0200
- CC: gcc at gcc dot gnu dot org
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
nbecker@fred.net wrote:
> I wrote:
> > You cannot do that directly on Linux - you have to do something like:
> > ./a.out | lpr
> Sorry to be picky, but what do you mean by "cannot do that directly on
> Linux"? You can (in principle) do anything you want.
Well, there _is_ a difference between doing something "directly" and
being able to do it "in principle".
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
:-)
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands