output to printer
Toon Moene
toon@moene.indiv.nluug.nl
Thu Apr 5 11:51:00 GMT 2001
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
More information about the Gcc
mailing list