[lug] port in use

Hugh Brown hugh at brownclan.org
Wed Jun 26 09:54:50 MDT 2002


I'm getting closer.

It turns out that you can use redirects to /dev/tcp/host/port to open a
socket to that port

The problem I have now is how to tell bash, just try to do it but don't
worry about doing anything to it.

Hugh


> > >What's a portable way to find out if a port is in use from a shell
> > >script?
> > >
> > >The output from netstat  on solaris and linux is fairly different.
> > >
> > >Hugh





More information about the LUG mailing list