Search Results

Search: Posts Made By: e-l-diablo
4,751
Posted By e-l-diablo
You are THE MAN. I always used #!/bin/sh or...
You are THE MAN. I always used #!/bin/sh or #!/bin/csh and had never problems before
That fixed it. Additionally I had to change that sctipt (small loop) because it did the stop/start/restart 1only....
4,751
Posted By e-l-diablo
That is what i do not understand. It shouldd work...
That is what i do not understand. It shouldd work
my default is bash (i like it)
I removed "[[" and left "[". It is better now.
that is the output

/opt/tmp/restart.txt: No such file or...
4,751
Posted By e-l-diablo
OK I have scripts (i renamed them and done some...
OK I have scripts (i renamed them and done some maintenance)
a) startTOMCAT.sh
b) startApp.sh
c) killapp.sh

startTOMCAT.sh

#!/bin/csh
echo $CATALINA_HOME
$CATALINA_HOME/bin/catalina.sh...
4,751
Posted By e-l-diablo
Hi. *that removes restart file if exist ...
Hi.

*that removes restart file if exist

That was FYI
Few more details. I am running Solaris 10 on SUN x4450 box (really nice work horse) with 128GB RAM.
when I run ./startApp.sh all works...
4,751
Posted By e-l-diablo
Hi again. After testing it does not work ...
Hi again. After testing it does not work

What i have done:
I have script called startMe.sh. It starts app and should kill when file in specific directory exists.

#!/bin/sh
rm...
4,751
Posted By e-l-diablo
perfect. Wht I dod not think about that. ...
perfect.
Wht I dod not think about that.
That is what I was searching for. I will give a try and let you know if it works as it should (there are more scripts in that process)
very, very much...
3,041
Posted By e-l-diablo
sudo -u username program arguments
sudo -u username program arguments
4,751
Posted By e-l-diablo
restart process based on file
Hi all.
I do have a script "startApp.sh" (app result is a file /opt/extract/appextract.txt)

I have no problems with stopping app


var1=`ps -ef | grep -v grep | grep MyApp | awk '{print...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 01:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy