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
echo Waiting for Metadata Server Port...
- 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