PDA

View Full Version : what command



munna_dude
11th March 2007, 04:53 PM
hi all

i have a question about server
some time my server downs..
so that am unable to access net

am using fedora 5 AMD

how to know server is down or up

i used these commands but no helps

ping fedoraforum.org
traceroute fedoraforum.org

but no helps

please help me is there any command like this to know serverdown

if any help cheers

munna_dude
12th March 2007, 11:09 AM
hi all

my friend advised me to visit the link
http://www.penguin-soft.com/penguin/man/1/nc.html
in this i found the nc command

FILE* kq;
kq=popen("nc fedoraforum.org 50", "r");
if(kq)
{printf("one \n");
}
else
{printf("two \n");
}

can i use like this to know server down and up

help me please.


thank you inadvance