[Info-vax] How to tell if TCP/IP port is in use
Michael Moroney
moroney at world.std.spaamtrap.com
Wed Jan 4 12:20:12 EST 2012
JF Mezei <jfmezei.spamnot at vaxination.ca> writes:
>Michael Moroney wrote:
>> I really want to know if something is listening on port 1234.
>netstat -a if I remember correctly. It will give you a list of ports
>being lisnened to and active connections. You can then scan for
>"LISTEN" AND 1234
Thanks, all. It appears the following sets $STATUS to different values
depending on whether the port has a listener or not.
"netstat" is also a builtin command of the tcpip command.
$ pipe tcpip netstat -an | search sys$input "*.1234","LISTEN"/mat=and
More information about the Info-vax
mailing list