LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-20-2010, 05:09 PM   #1
x81kilo
LQ Newbie
 
Registered: Jun 2010
Posts: 11

Rep: Reputation: 0
Permanent $PATH edits


hi,

i have installed tomcat and java sdk successfully with help of uncle google (and with some hair still left on me head)

question:
i have a vmware setup running redhat 5.4 environment, i have set paths in my .bashrc as such:

export CATALINA_HOME=/opt/dtv/apache-tomcat-5.5.26
export JAVA_HOME=/usr/java/jdk1.5.0_15
export PATH=$PATH:$CATALINA_HOME:$JAVA_HOME


question is that works all well and good when i login to the server and my profile executes, but i dont wanna login, i just wanna start my vmware login once and log back out, if the vmware linux enviro is still running, great, but if for some reason it gets rebooted (fuse goes out a lot in the house) i dont wanna deal with walking my kid thru how to start this service back up,

is there a better way to accomplish this so if server starts, so it sets the path environemnts for me without logging in?

** sorry if i sounded redundant there for a sec, still in headspin from the install **

thanks
x81kilo
 
Old 09-20-2010, 05:32 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Have you checked the Bash reference manual to try and figure out how Bash sources its configuration files?
 
Old 09-20-2010, 05:34 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by x81kilo View Post
hi,

i have installed tomcat and java sdk successfully with help of uncle google (and with some hair still left on me head)

question:
i have a vmware setup running redhat 5.4 environment, i have set paths in my .bashrc as such:

export CATALINA_HOME=/opt/dtv/apache-tomcat-5.5.26
export JAVA_HOME=/usr/java/jdk1.5.0_15
export PATH=$PATH:$CATALINA_HOME:$JAVA_HOME


question is that works all well and good when i login to the server and my profile executes, but i dont wanna login, i just wanna start my vmware login once and log back out, if the vmware linux enviro is still running, great, but if for some reason it gets rebooted (fuse goes out a lot in the house) i dont wanna deal with walking my kid thru how to start this service back up,

is there a better way to accomplish this so if server starts, so it sets the path environemnts for me without logging in?

** sorry if i sounded redundant there for a sec, still in headspin from the install **

thanks
x81kilo
Create a file
/etc/profile.d/tomcat.sh
put the exports in it
make it executable
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
$CFLAGS and $PATH - how to change them so that they stay permanent kiwi_MTBer Linux - Newbie 8 04-16-2009 09:51 PM
Permanent PATH variable with azureus dreamcatcheromerta Linux - Newbie 4 11-06-2008 07:31 PM
fstab edits won't stick in SM 6.5? bluesman2333 MEPIS 7 04-17-2007 06:48 PM
Code edits not showing in C++ Rojon Programming 3 06-02-2006 09:09 AM
Script edits KDE-Config? theonebeyond Programming 0 09-22-2004 01:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration