|
2010-03-04
, 21:48
|
|
Posts: 2,427 |
Thanked: 2,986 times |
Joined on Dec 2007
|
#2
|
The Following User Says Thank You to daperl For This Useful Post: | ||
|
2010-03-04
, 22:59
|
|
Posts: 579 |
Thanked: 286 times |
Joined on Oct 2009
@ Australia
|
#3
|
|
2010-03-05
, 01:48
|
|
Posts: 579 |
Thanked: 286 times |
Joined on Oct 2009
@ Australia
|
#4
|
|
2010-03-05
, 17:30
|
|
Posts: 2,427 |
Thanked: 2,986 times |
Joined on Dec 2007
|
#5
|
#! /bin/sh/usr/bin/sudo /usr/sbin/gainroot/usr/bin/killall hildon-desktop /usr/bin/killall hildon-home
chmod 777 /home/user/killerapp.sh
[Desktop Entry] Type=Application Name=App Killer Exec=/usr/bin/osso-xterm /home/user/killerapp.sh
The Following User Says Thank You to daperl For This Useful Post: | ||
|
2010-03-05
, 18:04
|
Posts: 1,224 |
Thanked: 1,763 times |
Joined on Jul 2007
|
#6
|
|
2010-03-05
, 18:59
|
|
Posts: 2,427 |
Thanked: 2,986 times |
Joined on Dec 2007
|
#7
|
It does not work like this. The killall commands after the sudo command will not run as root.
But it should not be a problem, since hildon-home and hildon-desktop run as user, so there should not be a problem to run those commands as user as well.
#! /bin/sh /usr/bin/killall hildon-desktop /usr/bin/killall hildon-home
The Following User Says Thank You to daperl For This Useful Post: | ||
|
2010-03-06
, 00:51
|
|
Posts: 579 |
Thanked: 286 times |
Joined on Oct 2009
@ Australia
|
#8
|
|
2010-03-06
, 02:51
|
|
Posts: 2,427 |
Thanked: 2,986 times |
Joined on Dec 2007
|
#9
|
thanks so much guys. ill have a play with it tonight . i want to try a few things with scripts. how do i run scripts as root though?
user ALL = NOPASSWD: ALL
sudo whoami
The Following User Says Thank You to daperl For This Useful Post: | ||
|
2010-03-06
, 17:07
|
|
Posts: 579 |
Thanked: 286 times |
Joined on Oct 2009
@ Australia
|
#10
|
well i have this bug https://bugs.maemo.org/show_bug.cgi?id=8723
every day i have to run the following command in xterminal to stop my n900 from not responding
sudo gainroot
killall hildon-desktop
killall hildon-home
im wondering how i can make it into a simple script and have a shortcut on the desktop?????
sorry. any help would be good im still learning and love it