Hi Hariharan,
Sorry for the delay, I have just got back from Holiday.
Have you read the link in my previous post, this should have shown you how to write a basic shell script
Example:
Code:
#!/bin/bash
###
### Script to get information about a specific port
### (passed as the first variable)
###
usage() {
echo "check_port [port]"
exit 1
}
### Check number of parameters passed
if [ $# -lt 1 ]
then
usage
fi
PORT=$1
### Run netstat -alnp and grab the relevant details
Please provide samples of the output that you get from
netstat -alnp and highlight the section that you are interested in checking.