This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: output to printer


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]