[daisy] [JIRA] Created: (DSY-431) Daisy wiki wrapper script should check/wait 'smart' for the repository to run!

Steven Noels stevenn at outerthought.org
Mon Mar 19 17:10:30 CDT 2007


On 19 Mar 2007, at 23:01, Marc Portier (JIRA) wrote:

> wait_for_server_start () {
>   port=$1
>   counter=0
>   serverstatus=`netstat -l  | grep -e "^tcp.*:${port}"`

That command is pretty Linux-specific, I'm afraid.

Mac OS X:

aymeric:~ stevenn$ netstat -l

yields a different output than the grep command expects:

Active Internet connections
Proto Recv-Q Send-Q  Local Address          Foreign Address         
(state)
udp4       0      0  *.mdns                 *.*
udp4       0      0  *.mdns                 *.*
udp4       0      0  *.mdns                 *.*

...

Solaris:

-bash-3.00$ netstat -l
netstat: illegal option -- l
usage: netstat [-anv] [-f address_family]
        netstat [-n] [-f address_family] [-P protocol] [-g | -p | -s  
[interval [count]]]
        netstat -m [-v] [interval [count]]
        netstat -i [-I interface] [-an] [-f address_family] [interval  
[count]]
        netstat -r [-anv] [-f address_family|filter]
        netstat -M [-ns] [-f address_family]
        netstat -D [-I interface] [-f address_family]

</Steven>
-- 
Steven Noels                            http://outerthought.org/
Outerthought                              Open Source Java & XML
stevenn at outerthought.org                stevenn at apache.org




More information about the daisy mailing list