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
help using terminal
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="IvanLasston" data-source="post: 1132230" data-attributes="member: 145676"><p>First you have to figure out where perl is -</p><p>[code]</p><p>which perl</p><p>[/code]</p><p></p><p>Make sure that matches what you put in the #! line - mine is actual in /opt/local/bin</p><p></p><p>If you want to run the script you have to set it to executable</p><p>[code]</p><p>chmod 755 first.pl</p><p>[/code]</p><p></p><p>Then you can do</p><p>[code]</p><p>./first.pl</p><p>[/code]</p><p>Which should run.</p><p></p><p>Here is a little more info on permissions</p><p><a href="http://www.computerhope.com/unix/uchmod.htm" target="_blank">Linux and UNIX chmod command help</a></p></blockquote><p></p>
[QUOTE="IvanLasston, post: 1132230, member: 145676"] First you have to figure out where perl is - [code] which perl [/code] Make sure that matches what you put in the #! line - mine is actual in /opt/local/bin If you want to run the script you have to set it to executable [code] chmod 755 first.pl [/code] Then you can do [code] ./first.pl [/code] Which should run. Here is a little more info on permissions [url=http://www.computerhope.com/unix/uchmod.htm]Linux and UNIX chmod command help[/url] [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
help using terminal
Top