Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Linux / UNIX and the fly likes running .profile file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "running .profile file" Watch "running .profile file" New topic
Author

running .profile file

Med Shabe
Ranch Hand

Joined: May 08, 2001
Posts: 84
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

Joined: Oct 25, 2000
Posts: 7292

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).]


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: running .profile file