Find the answer to your Linux question:
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 ...
  1. #1
    Just 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

  2. #2
    Linux Newbie
    Join Date
    Jul 2008
    Posts
    181
    Depending on what you mean by "busy", netstat might be what you want.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...