Search Results

Search: Posts Made By: iririr
10,263
Posted By iririr
Thanks a lot for your help. I fixed it : ...
Thanks a lot for your help.

I fixed it :


while [ 1 ]
do
myvar=`fgrep -c 'Started in' jboss_log.txt`

if [ "$myvar" -eq "1" ]
then
echo "JBoss was launched...
10,263
Posted By iririr
So far I have 5 6 ...
So far I have



5
6
7 while [ 1 ]
8 do
9
10 myvar= fgrep -c 'Started in' jboss_log.txt
11
12 echo $myvar
13
14 if [...
10,263
Posted By iririr
Thanks for the reply, however wait$! doesn't...
Thanks for the reply,

however wait$! doesn't work because
run.sh -c servername >> jboss_log.txt &

is never terminated, never returns, it keeps writing to boss_log.txt forever. So my 2nd...
10,263
Posted By iririr
Use grep result to execute next command
Hi I am trying to run 2 servers using a script one after the other.

I start the first one:

run.sh -c servername >> jboss_log.txt &

Then I have to wait until I see Started message in the log...
Showing results 1 to 4 of 4

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