Re: how to make a script that quits root

From: Tom Roberts <tjrob_at_fnal.gov>
Date: Wed, 14 Nov 2007 17:56:20 -0600


This works quite well:

        gApplication->Terminate(0);

Tom Roberts

Eduardo J. Ortega U. wrote:
> Hi:
>
> I have a small script script.C that is executed as
> bash# > root -l script.C
> root [0]
> ... some output...
> root [1]
>
> I want to make it quit root once it is executed, instead of leaving me
> with the root prompt.
> I tried adding
> .q
> And
> gProcessLine(".q")
>
> at the end of method script() but it didn't work. Any ideas if this is
> possible/how can it be done?
>
> Thanks
>
Received on Thu Nov 15 2007 - 00:56:47 CET

This archive was generated by hypermail 2.2.0 : Thu Nov 15 2007 - 05:50:03 CET