6

How can I adjust this short shell script to fit my needs?

view full story
linux-howto

http://unix.stackexchange.com – I am attempting to force powertop to run when I log in by using the Startup Applications wizard in Ubuntu. Under the 'Command' entry, I've placed gnome-terminal -x /home/***/Documents/programming/scripts/powertop.sh. It's using a one-line bash shell script: echo "******" | sudo -S powertop This inputs my superuser password correctly but doesn't allow me to interact with powertop after it's initialized because it's continuously running echo. How can I get privileges to run powertop using a shell script, yet still be able to use it in gnome-terminal? (HowTos)