Active Topics

 


Reply
Thread Tools
Posts: 4,030 | Thanked: 1,633 times | Joined on Jul 2007 @ nd usa
#1
First where can I find out more instructions about how to use osso-statusbar-cpu command feature?

I would like to do the following, using a one line command rather than running a .sh script, is it possible and how?


xterm
mplayer -playlist (myplaylist)/movies.m3u.txt

or

xterm
sudo gainroot
any commands

So far, when I put in "/usr/bin/osso-xterm | exec sudo gainroot" into the command line, it opens xterm, but freeze, it does not go to root.


TIA,


bun
 
Posts: 35 | Thanked: 6 times | Joined on Nov 2007 @ Phoenix, AZ
#2
You could see if osso-xterm supports the -e flag for exec. Example ...

/usr/bin/osso-xterm -e 'sudo gainroot && other-command-here'

*edit* gainroot worked for me, although I couldn't get any commands which output to actually output anything, although not getting any errors. Also notice there is a problem opening multiple terminal windows without using the menu in the terminal. It add's an extra shortcut bar to the bottom of the main one for each extra terminal you open.

*update* It appears that -e is working as expected, it executes the sudo gainroot as user and then executes ls as user not outputting to the root user. You might want to try a shell script, or perhaps see if using just sudo will work to run whatever command you need to run.

Last edited by pablo; 2008-01-19 at 06:33.
 

The Following User Says Thank You to pablo For This Useful Post:
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#3
since gainroot starts a shell, for the statusbar cpu,

sh -c 'echo reboot | sudo gainroot'

works as a reboot command. I've used the same for spectool_gtk.

sh -c says execute the string (which must be quoted), so you just feed the real command string to the gainroot subshell.
 

The Following User Says Thank You to tz1 For This Useful Post:
Posts: 4,030 | Thanked: 1,633 times | Joined on Jul 2007 @ nd usa
#4
@Pablo: I have to get it on a .sh script. Cant make the command work...........yet.


TIA,

bun
 
Reply


 
Forum Jump


All times are GMT. The time now is 07:29.