LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   starting .sh in background (https://www.linuxquestions.org/questions/linux-newbie-8/starting-sh-in-background-933482/)

fachhoch@gmail.com 03-08-2012 03:23 PM

starting .sh in background
 
I login to ssh to start my weblogic server ,
to start it in background I use /opt/............./startWeblogic.sh &

will this start weblogic in background ?
all the weblgoic output shows up in console ,and sometimes when I disconnect ssh weblogic alos stops , what is the right way to start any sh in background so that even if I disconnect from linux the process should be running .

acid_kewpie 03-08-2012 03:54 PM

well the weblogic start script should complete normally, you shouldn't be backgrounding it. The script starts the jvm's and exits. So once it's exited, you should have no problem closing SSH. Does the script not terminate itself?

suicidaleggroll 03-08-2012 04:09 PM

Code:

nohup startWeblogic.sh &> Weblogic.out &
That will allow you to exit the console without stopping the process.

fachhoch@gmail.com 03-09-2012 09:02 AM

Quote:

Originally Posted by suicidaleggroll (Post 4622233)
Code:

nohup startWeblogic.sh &> Weblogic.out &
That will allow you to exit the console without stopping the process.


I don't want to create new .out files every time I restart server

catkin 03-09-2012 09:06 AM

Then send the output to /dev/null but one day you may want to examine that output to investigate a problem.


All times are GMT -5. The time now is 03:17 AM.