|
|
PATH doesn't seem to be an issue for me
I am familiar with adding directories to my path, however if I just cd into the /usr/X11R6/bin directory and try to execute the command, bash says xinit is not a command. This is what I don't understand. Again, my previous post has what was originally listed as a script:
PATH doesn't seem to be an issue for me
the more modern unix variants wont execute a file if its in your current working directory ( because its not in your PATH by default ). Only commands which are in your PATH are searched and executed. You have to explicitly tell the system where it is:
You can, however add the current directory to your PATH. Then it will work like you expected, example for tcsh:
PATH doesn't seem to be an issue for me
Take note, however, that adding the current working directory to your $PATH is a serious security risk. If someone finds a way to put a file named 'ls' somewhere on your drive (maybe through guest access/file sharing), and you type ls in that folder as root, then you have excecuted their script as root. This is not a good idea. Just put ./ in front of the filename if you want to run something in the local directory. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|