Results 1 to 4 of 4
  1. #1


    Member Since
    Nov 03, 2007
    Posts
    26
    Changing PATH variable
    I'm trying to find the script that is automatically executed to set the environment variables (egATH). Where is this startup script located?

    P.S. I tried finding the answer on Google but i couldn't find the answer. I think im using the wrong search terms.

  2. #2

    Soulwar's Avatar
    Member Since
    Jan 27, 2008
    Location
    Estero, FL
    Posts
    1,515
    Specs:
    iMac 17" 1Ghz G4  iPhone 3G  10.5.5
    Performing Unix commands at system startup:
    "All Unix commands run while OS-X is booting up are run as root and have the potential to significantly alter the behavior of your system. Because this is potentially dangerous, creating one of these startup items is fairly difficult. They have a very structured format, and will not load unless they reside in one of two places: /System/Library/StartupItems (reserved for those provided by Apple) or /Library/StartupItems (where you should put yours)."

    See if these links help.
    http://developer.apple.com/documenta...section_4.html
    http://www.brooksandrus.com/blog/200...e-system-path/
    ttp://www.osxfaq.com/tutorials/LearningCenter/HowTo/Startup/index.ws
    When all else fails, try everything!
    The Rep System and you.
    Life's a joke...If you're not laughing, then you didn't get it.

    June 2008


  3. #3

    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,881
    Specs:
    Way... way too many specs to list.
    it's not a script, it's merely an environment variable. you can add a path in your .profile

    First do
    echo $PATH

    that'll show you your current path.

    add
    Code:
    export PATH=/path/to/whatever:$PATH
    to the file then execute

    . ./.profile

    Finally do
    echo $PATH

    and make sure the new addition shows.
    mike
    This machine kills fascists
    Got # ? phear the command line!

  4. #4

    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,881
    Specs:
    Way... way too many specs to list.
    if you don't have a .profile, make one chmod 711 it.
    mike
    This machine kills fascists
    Got # ? phear the command line!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. path environment variable
    By blackwaterdev in forum Switcher Hangout
    Replies: 5
    Last Post: 04-04-2013, 05:06 AM
  2. changing eject key path?
    By Familyguy9877 in forum OS X - Operating System
    Replies: 3
    Last Post: 12-08-2011, 11:53 PM
  3. Problems setting PATH variable in Lion
    By jon232 in forum OS X - Operating System
    Replies: 2
    Last Post: 10-28-2011, 01:52 AM
  4. How to edit PATH variable outside of terminal
    By oxy126 in forum OS X - Operating System
    Replies: 4
    Last Post: 04-22-2011, 07:29 PM
  5. Changing the iMovie "movie projects" path
    By johntkucz in forum Movies and Video
    Replies: 8
    Last Post: 07-06-2008, 06:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •