General discussion
-
Topic
-
Shell Scripts and Exporting
LockedHello, I am new to Linux and we plan to develop application servers in Linux. Currently, I am trying to get Weblogic’s Javabean container and Console running from a script. I can run the Console and the container from the command line no problem however, I am having difficulty getting the shell scripts to work. Help?
I mean, I can not even get the weblogic .bash_profile for the user I set up to export the PS1 variable I assigned or any other. Also, Weblogic has a setEnv.sh script to set up and export some more special variables such as JAVA_HOME but after you run the script “sh setEnv.sh” and then type “echo $Java_Home” nothing. I have already made sure weblogic owns the file,directory and permissions are set 755. This can’t be rocket science and the funny thing is if I assign variables and export them in etc/profile, they sometimes work with no problem but I do not want to clutter etc/profile if I do not have to or, is there where this stuff should go anyway. Please tellme what is going wrong with my shell scripts? P.S. I am running Red Hat 6.2