You can't 'ping a specific port' ping is an IP tool, and ports do not show up until the TCP/UDP level of your seven layer dip. Do some research on ICMP for more info.
If you want to know if a service that uses a specific port is responding, you will have to make some valid request using whatever protocol is operating on that port and determine if you received an appropriate response. Probably you are talking about protocols that run on TCP/IP, and you might want to use LWP::Socket for this. ----- Original Message ----- From: "Najamuddin, Junaid" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 25, 2002 4:32 PM Subject: Pinging > I need some help > I wrote a perl script which runs on win NT and pings the other server to > ensure its availability in the network > In case if ping fails it responds with email and page > If I need to ping a specific port on that server, how I can accomplish that > I can check that port thru a url in the intranet using the browser > Is it possible to check for port availability by using url thru perl script > if not thru command line > > Any help will be great > Thanks in advance > > junaid > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]