Saving terminal commands and running them.

Forum rules
Before you post please read how to get help

Saving terminal commands and running them.

Postby wildboy211 on Fri Oct 19, 2012 9:15 pm

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?
wildboy211
Level 1
Level 1
 
Posts: 11
Joined: Mon Oct 10, 2011 11:05 pm

Linux Mint is funded by ads and donations.
 

Re: Saving terminal commands and running them.

Postby rocuronium on Fri Oct 19, 2012 9:35 pm

Yes, there is. Look into bash scripting.

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

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

Good luck!
rocuronium
Level 1
Level 1
 
Posts: 23
Joined: Thu Jul 21, 2011 6:20 pm

Re: Saving terminal commands and running them.

Postby wildboy211 on Fri Oct 19, 2012 11:35 pm

rocuronium wrote:Yes, there is. Look into bash scripting.

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

This might be a good thread to get you started: 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!
wildboy211
Level 1
Level 1
 
Posts: 11
Joined: Mon Oct 10, 2011 11:05 pm

Re: Saving terminal commands and running them.

Postby rocuronium on Sat Oct 20, 2012 7:13 am

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.
rocuronium
Level 1
Level 1
 
Posts: 23
Joined: Thu Jul 21, 2011 6:20 pm

Re: Saving terminal commands and running them.

Postby GeneC on Sat Oct 20, 2012 7:56 am

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
GeneC
User avatar
GeneC
Level 7
Level 7
 
Posts: 1603
Joined: Fri Sep 03, 2010 1:59 pm
Location: Maine, USA


Return to Scripts & Bash

Who is online

Users browsing this forum: No registered users and 3 guests