Thread
:
Need help with this command
View Single Post
SubCore
2010-09-04 , 10:38
Posts: 850 | Thanked: 626 times | Joined on Sep 2009 @ Vienna, Austria
#
7
to start a script as root, you could use
Code:
echo /path/to/script | sudo gainroot or /bin/busybox sh -c 'echo /path/to/script | sudo gainroot'
that script can be a shell script, python or anything else, as long as the executable flag (+x) is set.
(and just to mention it - there really is no point in using python if all you're doing are calls to os.system, better just use a shell script for that.)
__________________
"What we perceive is not nature itself, but nature exposed to our method of questioning."
-- Werner Karl Heisenberg
Quote & Reply
|
The Following 2 Users Say Thank You to SubCore For This Useful Post:
Cue
,
ossipena
SubCore
View Public Profile
Send a private message to SubCore
Find all posts by SubCore