#!/bin/bash
#!/bin/bash
aticonfig --list-powerstates
chmod +x ATI_PowerStates_Information.sh
Which is pretty much what i managed to find, but it doesnt work.Beepcake said:Just run vi (or your favourite editor) and make a file like this:
#!/bin/bash
<your commands here>
Then save it and do chmod +x <filename>, then just ./<filename> to run it.
BoomAM said:I want it so that they are executable from icons.![]()
It doesnt 'list' anything at all though.riven said:Do you want it to open a terminal and then run that command and list the output in the terminal?
then save any scripts in you own bin folder and you will be able to exec them from any dir.PATH=$PATH:$HOME/bin
cd /home/boomam/scripts/
chmod +x scripty.sh
./scripty.sh
Use it how? That's what he wants to know.JonRohan said:you can also use "sh myscript.sh" for ubuntu.
Yes, that works.BillytheImpaler said:Alright, we'll use the terminal and cd command then describe where the file is. In this example the script is called scripty.sh and it is located in /home/boomam/scripts.
Open up the terminal and typeThen we're going to make the script executable. TypeCode:cd /home/boomam/scripts/
Now you can execute the script withCode:chmod +x scripty.sh
Code:./scripty.sh
Does that work? Does the script execute in the terminal window?
BillytheImpaler said:Use it how? That's what he wants to know.