Time Counter



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

.



Relevant Pages

  • Re: Time Counter
    ... I have an until loop in a script, which will sleep until a t ... particular process starts listening at a particular port. ...
    (comp.unix.shell)
  • Re: Time Counter
    ... I have an until loop in a script, which will sleep until a t ... particular process starts listening at a particular port. ...
    (comp.unix.questions)
  • Time Counter
    ... I have an until loop in a script, which will sleep until a t ... particular process starts listening at a particular port. ...
    (comp.unix.questions)
  • Re: Time Counter
    ... I have an until loop in a script, which will sleep until a t ... particular process starts listening at a particular port. ... echo Waiting for Metadata Server Port... ...
    (comp.unix.shell)
  • Re: Best Plan of action for 2 forest.......
    ... PortQry reports the status of a port in one of the following ways: ... ..LISTENING This response indicates that a process is listening on the target ...
    (microsoft.public.windows.server.active_directory)