View Single Post
Posts: 47 | Thanked: 22 times | Joined on Apr 2010
#291
Originally Posted by nokian-series View Post
Is there another way to execute that commands with 'root' ?! Or i'm doing anything wrong with that method of script.sh ?
Why not just put "sudo gainroot" at the top of the script before all the commands? No need to pipe it then...