Page 1 of 1

Saving terminal commands and running them.

Posted: Fri Oct 19, 2012 9:15 pm
by wildboy211
Is there a way to add some commands to say a text file and save it, then double click it and it opens terminal and runs those commands?

Re: Saving terminal commands and running them.

Posted: Fri Oct 19, 2012 9:35 pm
by rocuronium
Yes, there is. Look into bash scripting.

There is bash and script forum here on the Linux Mint forums: http://forums.linuxmint.com/viewforum.php?f=213

This might be a good thread to get you started: http://forums.linuxmint.com/viewtopic.php?f=213&t=77062

Good luck!

Re: Saving terminal commands and running them.

Posted: Fri Oct 19, 2012 11:35 pm
by wildboy211
rocuronium wrote:Yes, there is. Look into bash scripting.

There is bash and script forum here on the Linux Mint forums: http://forums.linuxmint.com/viewforum.php?f=213

This might be a good thread to get you started: http://forums.linuxmint.com/viewtopic.php?f=213&t=77062

Good luck!
WOW - thank you so much, i read some of the articles and now there is SO much repetitive things that i have been doing that now i can just make a bash script for. Again, thank you!

Re: Saving terminal commands and running them.

Posted: Sat Oct 20, 2012 7:13 am
by rocuronium
wildboy211 wrote:WOW - thank you so much, i read some of the articles and now there is SO much repetitive things that i have been doing that now i can just make a bash script for. Again, thank you!
You're welcome. Scripts can definitely make your life a lot easier.

In case you haven't read about it already, look into using cron to automatically run your scripts or other tasks.

Re: Saving terminal commands and running them.

Posted: Sat Oct 20, 2012 7:56 am
by GeneC
wildboy211 wrote:Is there a way to add some commands to say a text file and save it, then double click it and it opens terminal and runs those commands?
Not exactly what you mention, but...
How about a nice GUI..? :D
I personally could not live without this one.

Clicompanion

http://www.ubuntugeek.com/clicompanion- ... buntu.html

Download
https://launchpad.net/clicompanion

Comes with pre-installed commands (most not all that useful, but you add your own, after time you will have MANY).

Image