double click .command file

Hi!

I've got a simple .command file that literally just has "ls" in it.
When I double click it on my powerbook, it opens terminal, then opens a window and lists.
When I double click it on my macpro, it opens terminal and does nothing.

When I execute it via terminal, it works on both.
Any reason why the double click isn't working on the macpro?

(2) dual 2.5 g5, Mac OS X (10.4.2)

Posted on Sep 25, 2007 2:07 PM

Reply
3 replies

Sep 28, 2007 3:58 PM in response to tibor.moldovan

Do ensure that the shell script is chmod'd (eg: chmod o=rwx) to allow execute access, and ensure the file extension chosen when you double-click will be passed to Terminal.app (or iTerm.app, etc) using the Finder's Get Info on the file and changing the application that will receive a double-click against .sh (for instance) files. Either for the particular file, or for all files with the .sh type.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

double click .command file

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.