How do I make an executable terminal file?

Forum rules
Before you post please read this

How do I make an executable terminal file?

Postby Setro2 on Mon Dec 17, 2012 5:44 pm

Hello,
I am sorry if I did not make myself clear enough in the title, couldn't fit it all, lol.
So, my question is how to make a file on my desktop, that when clicked, opens terminal and automatically enters a code, and executes that code.
All help is appreciated. :D
Specs:
Linux Mint 12
32-bit
Cinnamon
Setro2
Level 1
Level 1
 
Posts: 13
Joined: Sat Nov 24, 2012 8:44 pm

Linux Mint is funded by ads and donations.
 

Re: How do I make an executable terminal file?

Postby Orbmiser on Mon Dec 17, 2012 5:53 pm

Can get better results with a simple google it.
https://www.google.com/search?q=shortcut+opens+term+and+executes+a+command

As can give you many insights into different ways to do it.
Then expecting a few here to show you.
Google is your best friend waiting to help you so you don't have to wait for a response from us here.
.
User avatar
Orbmiser
Level 7
Level 7
 
Posts: 1514
Joined: Thu Oct 18, 2012 5:16 pm
Location: Portland,Oregon

Re: How do I make an executable terminal file?

Postby mauler5858 on Mon Dec 17, 2012 5:54 pm

Is the file marked as executable?

If not, open a terminal and type.....chmod 770 filename
mauler5858
Level 1
Level 1
 
Posts: 3
Joined: Wed May 30, 2012 8:30 am

Re: How do I make an executable terminal file?

Postby mank_in on Tue Dec 18, 2012 5:40 am

you can use gedit to create text file. save it. right click on file, select properties, on permission tab : check : allow executing file as program.
after that , just double click the file, select run in terminal.
Image
Sorry for my bad English , I am Indonesian.
User avatar
mank_in
Level 6
Level 6
 
Posts: 1346
Joined: Wed Nov 16, 2011 2:29 pm
Location: Bali


Return to Scripts & Bash

Who is online

Users browsing this forum: No registered users and 3 guests