Executing Shell Script in Mac OS X Finder
It's easy to set-up the finder so that you can execute shell scripts simply by double-clicking on your shell script. To set it up, take the following steps:
Now you are set-up to execute the shell script every time you double-click on it.
Lovely, thanks a lot. Glad there's a quick solution to this somewhat annoying problem.
The instruction above is for shell scripts with the ".sh" extension. If you use bash shell and your shell script has the ".bash" extension, they will automatically execute on double-click.
In addition, the instruction above is to change the execution of a single ".sh" shell script.
The following instruction allows you to change all ".sh" files to execute:
1. Right click on a ".sh" file.
Doesn't work on osx! pwd is only correct if called in a term alike ./scriptname
Not sure what you are talking about, mike. Please describe your problem in detail and in context.
probably works only if script already has execute rights (chmod 777)
Did your message disappear? Read the Forums FAQ.
Spam Control | * indicates required field
TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.
No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.
Messages, files, and images copyright by respective owners.
62 Users Online
Copyright © 2004 - 2018. All Rights Reserved.