Saving terminal commands and running them.

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
wildboy211

Saving terminal commands and running them.

Post 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?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
rocuronium

Re: Saving terminal commands and running them.

Post 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!
wildboy211

Re: Saving terminal commands and running them.

Post 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!
rocuronium

Re: Saving terminal commands and running them.

Post 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.
GeneC

Re: Saving terminal commands and running them.

Post 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
Locked

Return to “Scripts & Bash”