#!/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.
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?
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?