I have a little 2 line script. I am running Ubuntu. I want to just double click it and run it (like a batch file).
When I do double click it, it is opened in the text editor? Can someone remedy this?
Shell Script Quick Question.
Started by
Ragnarok30
, Mar 25 2009 11:07 PM
4 replies to this topic
#1
Posted 25 March 2009 - 11:07 PM
#2
Posted 25 March 2009 - 11:18 PM
What's the filename?
Also, you could post the contents of the script if you like.
Also, you could post the contents of the script if you like.
#3
Posted 25 March 2009 - 11:19 PM
chmod a+rwx /path/to/file
#4
Posted 25 March 2009 - 11:26 PM
chmod a+rwx /path/to/file
If you're going to use chmod, at least use it properly. It's good that you're no longer using octal mode. It's bad that you're repeating all the same mistakes. Never set all permission bits unless that's what you really want to do.
chmod +x /path/to/file
How hard is that?
@Ragnarok30: I assume you're using Gnome. Gnome will ask you what to do with any file with execute permissions. Just click Run and it'll run go.
#5
Posted 26 March 2009 - 08:19 AM
Oh wow. I should have known this. You guys are really remarkable sometimes. I have to goto work now, I'll have to try this in the evening.
This is what I'm trying to pull off if you guys are interested. Shut down your PC via SMS
This is what I'm trying to pull off if you guys are interested. Shut down your PC via SMS
BinRev is hosted by the great people at Lunarpages!











