The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
EOF checking the below ramkrix High Level Programming 10 03-11-2008 01:43 AM
checking uid filthymonk Shell Programming and Scripting 7 07-19-2007 11:40 PM
Checking Server work load aojmoj SUN Solaris 3 03-08-2007 10:28 PM
Checking for availability of remote server dylanmilks Shell Programming and Scripting 4 03-01-2007 12:08 PM
Checking for availability of remote server dylanmilks IP Networking 1 02-22-2007 07:48 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-09-2005
jhansrod jhansrod is offline
Registered User
  
 

Join Date: May 2005
Posts: 80
Checking if SErver is up

Hi All

Does anyone have any idea on how I can check in a script if a server is responind. I thought of using ping, however if there is no response from the server this command just hangs.

Regards
J
  #2 (permalink)  
Old 06-09-2005
jhansrod jhansrod is offline
Registered User
  
 

Join Date: May 2005
Posts: 80
I have used the ping -w option and this timeout works, however I would like to check if the server is responsive. To this I will use rsh.

Thx
  #3 (permalink)  
Old 06-09-2005
muthukumar muthukumar is offline
Registered User
  
 

Join Date: Feb 2005
Location: Coimbatore, Tamilnadu, India
Posts: 119
You can use ping as,

ping localhost -n 1 -m 5

where -m option is used to give timeout option. Default it is with 10 seconds.
-n option is used to give ping count

hth.
  #4 (permalink)  
Old 06-09-2005
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Just be aware that options to ping vary wildly between Unix flavours.

Please post the output of uname -a

Cheers
ZB
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:57 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0