how to make a script that quits root

From: Eduardo J. Ortega U. <ortegaue_at_uregina.ca>
Date: Wed, 14 Nov 2007 17:23:08 -0600


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

-- 
Eduardo J. Ortega U.
Received on Thu Nov 15 2007 - 00:23:27 CET

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