![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | 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 | Thread Starter | Forum | Replies | Last Post |
| AIX - Cant ping | Netghost | AIX | 1 | 10-03-2006 03:38 PM |
| Ping | sam70 | UNIX for Dummies Questions & Answers | 1 | 08-02-2005 09:56 PM |
| ping | csaunders | AIX | 1 | 04-24-2005 02:54 PM |
| ping -t | jaber87 | Shell Programming and Scripting | 8 | 04-17-2004 09:58 AM |
| About Ping | S.Vishwanath | IP Networking | 4 | 11-09-2002 06:06 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
ping
Hi there hope list can help
I'm looking for a command that does the following lets say i ping a server 00.00.000.00 and this server is up and running how do i get the ping command to return a UP or a Down meaning if the command is true do this if the command is False do this Regards Nemex |
| Forum Sponsor | ||
|
|
|
|||
|
To see if a ping has worked, check the return value ($?)
ie. something like Code:
ping -c1 <server_name>
if [ $? -ne 0 ]
then
echo "Not Found"
else
echo "Found
fi
Last edited by oombera; 02-17-2004 at 11:12 AM. |
|||
| Google UNIX.COM |