New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Changing PATH variable


Post Reply New Thread Subscribe

 
Thread Tools
burnt1ce85

 
Member Since: Nov 03, 2007
Posts: 26
burnt1ce85 is on a distinguished road

burnt1ce85 is offline
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.
QUOTE Thanks
Soulwar

 
Soulwar's Avatar
 
Member Since: Jan 27, 2008
Location: Estero, FL
Posts: 1,515
Soulwar is just really niceSoulwar is just really niceSoulwar is just really niceSoulwar is just really nice
Mac Specs: iMac 17" 1Ghz G4  iPhone 3G  10.5.5

Soulwar is offline
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

QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,638
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
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!
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,638
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
if you don't have a .profile, make one chmod 711 it.

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks

Post Reply New Thread Subscribe


« qt library for Mac | NextStep vs Sun Development »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
path environment variable blackwaterdev Switcher Hangout 5 04-04-2013 04:06 AM
Full path is not showing up correctly in address bar mac_min Web Design and Hosting 0 02-28-2008 11:23 AM
Changing MacBook's sleep mode visualpurple Apple Notebooks 5 03-05-2007 08:36 PM
how can i set the path? Bo Eddy OS X - Development and Darwin 1 05-12-2004 10:45 AM
Getting the full path of a file rcwhite OS X - Operating System 1 03-13-2004 01:36 AM

All times are GMT -4. The time now is 10:48 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?