Sign in to follow this  
Followers 0
Ragnarok30

Shell Script Quick Question.

5 posts in this topic

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?

0

Share this post


Link to post
Share on other sites

What's the filename?

Also, you could post the contents of the script if you like.

0

Share this post


Link to post
Share on other sites
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.

0

Share this post


Link to post
Share on other sites

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

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0