Originally Posted By: Hal Itosis
Originally Posted By: artie505
Thanks for that, but what am I doing wrong?

Code:
Last login: Sat Jan 14 02:30:26 on ttys000
Artie-s-Computer-4:~ artie$ chmod a+x /Users/artie/Desktop/cc.txt 
Artie-s-Computer-4:~ artie$ 

and "cc" is still not executable.

Well —due to that .txt extension —cc doesn't exist (but cc.txt does). So if you type the full path ~/Desktop/cc.txt then it will execute. Better yet, remove (not just hide) the extension completely.

Originally Posted By: artie505
And I'm afraid that "$PATH" is a bit beyond my experience; does it mean /bin?

Yes, /bin is typically always part of $PATH. That's why we can simply type ls instead of needing to type /bin/ls every time. Rather than tapping out all the details on my iPad, i offer this link:

http://hayne.net/MacDev/Notes/unixFAQ.html

Got it! Many thanks. cool

The .txt icon changed to a Unix executable icon as soon as I removed the .txt; did I still have to chmod?

(I don't follow So if you type the full path ~/Desktop/cc.txt then it will execute. Isn't that what I did when it wouldn't execute?)


The new Great Equalizer is the SEND button.

In Memory of Harv: Those who can make you believe absurdities can make you commit atrocities. ~Voltaire