![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| AIX - Cant ping | Netghost | AIX | 1 | 10-03-2006 06:38 PM |
| Ping | sam70 | UNIX for Dummies Questions & Answers | 1 | 08-03-2005 12:56 AM |
| ping | csaunders | AIX | 1 | 04-24-2005 05:54 PM |
| ping -t | jaber87 | Shell Programming and Scripting | 8 | 04-17-2004 12:58 PM |
| About Ping | S.Vishwanath | IP Networking | 4 | 11-09-2002 10:06 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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 |
|
||||
|
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 03:12 PM.. |
| Sponsored Links | ||
|
|