File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: running .profile file