Time Counter
- From: "zubairom@xxxxxxxxx" <zubairom@xxxxxxxxx>
- Date: 16 May 2006 12:33:32 -0700
Hi,
I have an until loop in a script, which will sleep until a t
particular process starts listening at a particular port. Once the
process starts listening at the designated port it continues to execute
other tasks. However I do not want the loop to contine infinitely in
case the process does not start listening at the port. For that purpose
I want to include a Time counter which will force to exit the loop if
the process does not start listening at the port after 10 Minutes.
Does anyone has any suggestions.
until netstat -a | grep 8562 | grep LISTEN > /dev/null
do
sleep 1
echo Waiting for Metadata Server Port...
done
thanks
Omer
.
- Follow-Ups:
- Re: Time Counter
- From: Sam
- Re: Time Counter
- From: Kevin Collins
- Re: Time Counter
- Prev by Date: Re: Script works in ksh but not sh.
- Next by Date: Re: Script works in ksh but not sh.
- Previous by thread: Script works in ksh but not sh.
- Next by thread: Re: Time Counter
- Index(es):
Relevant Pages
|