[plug] script help, needed on 'su' or equivalent

John Knight anarchist_tomato at hotmail.com
Fri May 7 11:46:58 WST 2004


G'day all!

I'm working on a script which I've dubbed 'buildprogram' for the moment. It 
takes:
./configure
make
su
make install

and whacks 'em all in a script so you only have to run the one command. Of 
course it's very basic at the moment, and I plan to add features like 
passing arguments to configure, error checking, etc. The main goal is to 
have one executable that I can run easily enough, and when I'm on a 
filemanager, ru nmy own little plugin where I go into a recently extracted 
tarball's directory, right click and choose 'make program here', at which 
point a terminal will open displaying the output and everything will make me 
happy. :)

Anyway, the bit I'm not sure about is how do I run a command as root? The 
only think I know how to do is use su, and if you have 'su' and then 'make 
install' in the script, then it won't run the command. I know it's an easy 
question and probably an easy thing to do, but could someone please fill me 
ni on the right command?

Cheers!
John

"...it was brilliant, there was three up against a thousand, and boy, did we 
give those three heaps!"

_________________________________________________________________
Personalise your mobile chart ringtones and polyphonics. Go to  
http://ringtones.com.au/ninemsn/control?page=/ninemsn/main.jsp




More information about the plug mailing list