wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Consider Paul's rocket mass heater.
 
subject: running .profile file
 
Similar Threads
how to customize the user environment using the .profile file in redhat(fedora)?
Get environment variables
New to hibernate: Merge() is not updating
profile file format
J2ME with IDEA