Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

running .profile file

 
Med Shabe
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have created a .profile for myself which contains bunch of classpaths and other things. How do I run this .profile file automatically on login?
Thanks
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The action is called 'sourcing,' and how you do it varies with the shell. For the Bourne, Korn, and bash shells use:
$ . $HOME/.profile
For C shell use:
% source $HOME/.profile
------------------
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide
[This message has been edited by Michael Ernest (edited October 18, 2001).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic