|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
Check the URL is alive or dead with port number
Hi,
I am running certain weblogic instance, in which it's hard to find which instance is stopped or running after stopping the weblogic , cause process status is for all the instance is same. A URL which shows the instance is stopped or running. But i have major challenge to check it through unix, cause it's having the port number and ping is not supporting it. HTML Code:
ping -c4 my_url.com port_no Any other command does do the same job to check . Thanks |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
ping is ICMP, not related at all to ordinary TCP network connections. Since it's a URL, try wget: Code:
if wget -q http://server:port -O /dev/null
then
echo "server:port is alive"
else
echo "server:port is dead"
fi |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
Correct. Or use --spider with wget: Code:
--spider
When invoked with this option, Wget will behave as a Web spider, which means that it will not download the pages, just check that they are there. |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do you check whether a port currently being used? | rajesh08 | UNIX for Dummies Questions & Answers | 6 | 05-13-2009 11:15 AM |
| How to check if a pid is alive? | ScriptDummy | Shell Programming and Scripting | 6 | 06-29-2007 03:53 AM |
| Check whether a process is alive or not | appleforme1415 | UNIX for Dummies Questions & Answers | 23 | 06-05-2007 12:47 AM |
| check if job still alive and killing it after a certain walltime | ciwstevie | Shell Programming and Scripting | 3 | 07-27-2005 07:04 AM |
| FTP Port Number | mbb | UNIX for Advanced & Expert Users | 2 | 04-22-2004 07:27 AM |
|
|