Results 1 to 2 of 2
Hi All
How to create a shell script on centos 5. which tells whether the particula port is busy or not.
It will take input port number like 80 ,25 ...
- 07-29-2008 #1Just Joined!
- Join Date
- Jun 2008
- Posts
- 15
shell script to check port is busy
Hi All
How to create a shell script on centos 5. which tells whether the particula port is busy or not.
It will take input port number like 80 ,25 etc and will tell whetehr it is free or busy.
I would like to use this script in below manner
SHELL>checkPort.sh 80
SHELL>busy or free it returns.
what is good a c/c++ socket program to check port busy or not, Or shell script for the same?
Thanks
Ritesh
- 07-29-2008 #2Linux Newbie
- Join Date
- Jul 2008
- Posts
- 181
Depending on what you mean by "busy", netstat might be what you want.


Reply With Quote