> -----Original Message----- > From: Philip Martin [mailto:philip.mar...@wandisco.com] > Sent: woensdag 10 juni 2015 14:05 > To: Andreas Stieger > Cc: dev@subversion.apache.org > Subject: Re: [patch] Support modern network utilities for finding free ports for > tests > > Andreas Stieger <andreas.stie...@gmx.de> writes: > > > HTTPD_PORT=3691 > > -while netstat -an | grep $HTTPD_PORT | grep 'LISTEN' >/dev/null; do > > +while \ > > + (ss -ltn sport = :$HTTP_PORT 2>&1 | grep :$HTTP_PORT > /dev/null ) \ > > + || \ > > + (netstat -an 2>&1 | grep $HTTP_PORT | grep 'LISTEN' > /dev/null ) \ > > + do > > You have HTTP_PORT where it should be HTTPD_PORT. I fixed that and > committed r1684649. Thanks!
Shouldn't the default be the other way around?... Stick to using netstat unless it doesn't exist? I don't think 'ss' is nearly available as widely as netstat. It might even be Linux specific. Netstat is available on FreeBSD and even on Windows, while 'ss' is available on neither. Bert