[ksh93-integration-discuss] Re: [ast-users] /dev/tcp+/dev/udp not compiled-in for Solaris ksh93r...

Glenn Fowler gsf at research.att.com
Fri Sep 8 06:00:26 PDT 2006


On Fri, 8 Sep 2006 14:38:07 +0200 I. Szczesniak wrote:
> On 9/7/06, Roland Mainz <roland.mainz at nrubsig.org> wrote:
> > Glenn Fowler wrote:
> > > socket() not in libc
> > > solaris is still in the 70's on this one
> > > is it in -lsocket?
> > [snip]
> >
> > Minor update (I just hit that problem again): It still doesn't work in
> > ksh93r+_20060724... ;-(

> Does ksh93 provide a property which can be used to check within a
> script whether the shell has been built with networking capabilities?

this relies on tcp service port 7 (echo) being active:

if	( : < /dev/tcp/local/7; ) 2> /dev/null
then	: /dev/tcp works
fi

this will also work on systems that support /dev/tcp/HOSTNAME/SERVICE
(e.g., for programs run under the ast 3d filesystem)

-- Glenn Fowler -- AT&T Research, Florham Park NJ --




More information about the ksh93-integration-discuss mailing list