View Single Post
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#78
Originally Posted by torpedo48 View Post
I'm trying your modified version, it seems that it doesn't work cause the osso-xterm windows don't have root access (solved by adding a "sudo" in front of the commands, I have sudser installed); using sudo works pretty well, but it can't correctly kill the processes when closing.

Thanks everyone for the hard work
Thankyou for testing torp, if you are feeling adventurous, try modifying all the 'osso-xterm' lines with:

Code:
osso-xterm -e "ash -c 'sudo somecommand;read foo;exit;'"
i.e. add the exit command as shown above to the end of each call to osso-xterm. If this works the next logical step is to write a sub-routine that will take any command and run it as root in a term.

i.e.

Code:
root_term(command){
osso-xterm -e "ash -c 'sudo $command;read foo;exit;'"}
or somthing.
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
 

The Following User Says Thank You to vi_ For This Useful Post: