Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Terminal Commands
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="nMiller92" data-source="post: 597309" data-attributes="member: 48638"><p>Hmmmm......It works for me. The only problem I have is that when I choose Terminal.app to open the script (with a .sh extension), Finder says "It is not known if this application can open shell script files", but it still works.</p><p></p><p>Does the Terminal actually open, or does it start to open and then quit? If it opens and says "[Process Complete]", then you should be in business. Try it with a script that echoes a string so you can physically see the results.</p><p></p><p>My commands (in order) and results:</p><p></p><p>cd Desktop</p><p>vi test.sh</p><p>(typed " echo 'test' ")</p><p>(exited vi)</p><p>chmod 755 test.sh</p><p>(changed preferred app to Terminal)</p><p>double clicked and got...</p><p>---------</p><p>Last login: Mon Feb 18 16:57:01 on ttys000</p><p>macbook:~ nick$ /Users/nick/Desktop/test.sh ; exit;</p><p>test</p><p>logout</p><p></p><p>[Process completed]</p><p>---------</p></blockquote><p></p>
[QUOTE="nMiller92, post: 597309, member: 48638"] Hmmmm......It works for me. The only problem I have is that when I choose Terminal.app to open the script (with a .sh extension), Finder says "It is not known if this application can open shell script files", but it still works. Does the Terminal actually open, or does it start to open and then quit? If it opens and says "[Process Complete]", then you should be in business. Try it with a script that echoes a string so you can physically see the results. My commands (in order) and results: cd Desktop vi test.sh (typed " echo 'test' ") (exited vi) chmod 755 test.sh (changed preferred app to Terminal) double clicked and got... --------- Last login: Mon Feb 18 16:57:01 on ttys000 macbook:~ nick$ /Users/nick/Desktop/test.sh ; exit; test logout [Process completed] --------- [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Terminal Commands
Top