01-27-2013
Sorry? If you run your loop over the 10 hosts in your code snippet, for every host responding it will execute the then branch and increment cnt in there, so cnt will hold the No. of active hosts afterwards. Did you give it a shot, after all?
8 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hey,
I have few Questions :
1. How to Check/Find who all are the users accessing the server using their id ?
2. How to Check who is the active user or non active user (whose id exists but the access privileges has been removed) ?
I am presently using AIX5.3 as a server.
Please suggest... (3 Replies)
Discussion started by: varungupta
3 Replies
2. AIX
Hi all,
I am new to HACMP. So sorry for the newie question. But I did search the forum and it seems that no one asks this before.
So if a 2-node cluster runs in active-active mode (and the same application), what is the benefit of using HACMP ?
If it runs in active-stanby, it is easy to... (9 Replies)
Discussion started by: qiulang
9 Replies
3. Shell Programming and Scripting
Good afternoon! Im new at scripting and Im trying to write a script to
calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies
4. Web Development
Hi
I have a solaris 9 OS with apache web server running on top of it. i want to know how many http connections are active at any point in time. (In other words how many users are accessing my website it at any moment of time)
How to get it..?
hit counters are not required...
----------... (0 Replies)
Discussion started by: aemunathan
0 Replies
5. Solaris
Hi,
I need to configure 4 ip address (same subnet and mask) in one ipmp group (two interfaces) in an active active formation (link based). Can some one provide the steps or a tutorial link.
Thanks (2 Replies)
Discussion started by: Mack1982
2 Replies
6. Shell Programming and Scripting
Hi anyone can help?
How to calculate total number of weeks from a specify date, for example, 01 Jan 2012.
Thx! (2 Replies)
Discussion started by: rayray2013
2 Replies
7. UNIX for Beginners Questions & Answers
Hi - If iam logged on to server A, on 4 putty windows using SSH ... and out of these 4 logged-in sessions, in one of the sessions if i did SSH from server A to server B;
i would now have 4 putty windows sessions ... of which 3 are actively logged on to Server A while 1 putty window is actively... (2 Replies)
Discussion started by: i4ismail
2 Replies
8. Solaris
Hi,
I want to get total number of cores on my all non-global zones on Solaris 10. I got two methods and both are giving different results. Below link is a script, which tells me that total cores are 8
Mandalika's scratchpad: Oracle Solaris: Show Me the CPU, vCPU, Core Counts and the... (4 Replies)
Discussion started by: ron323232
4 Replies
LEARN ABOUT DEBIAN
rplay.hosts
RPLAY.HOSTS(5) File Formats Manual RPLAY.HOSTS(5)
NAME
rplay.hosts - rplay host authentication database
SYNOPSIS
/usr/local/etc/rplay.hosts
DESCRIPTION
The rplay.hosts file contains a list of hosts and access permissions which rplayd uses to validate incoming connections. Each line is of
the form:
hostname[:permission]
where
hostname is the name of a remote host or a host's IP address. Wildcards can be used within IP addresses to match multiple hosts.
The wildcard character is "*".
permission is an optional field containing any combination of the following characters:
r the host can read sounds.
w the host can write sounds.
x the host can play, stop, pause, and continue sounds. This is normally called execute permission.
m the host can monitor the audio stream written by rplayd to the audio device.
"rx" permissions are used when no permissions are specified.
EXAMPLE
#
# All hosts have read access:
#
*:r
#
# Trusted hosts:
#
nice-guy.sdsu.edu:rwx
friend.sdsu.edu:rwx
amigo.sdsu.edu:rwx
130.191.224.224:rwx
#
# Hosts which can read and execute:
#
foo.bar.com:rx
130.190.*:rx
146.244.234.*:rx
using.default.perms.edu
#
# Hosts which can monitor the audio stream
#
nsa.sdsu.edu:m
FILES
/usr/local/etc/rplay.hosts
SEE ALSO
rplayd(1)
BUGS
The permissions for an "*" entry apply to all matching hosts. The order of this file does not matter. Specific hosts can have access dis-
abled with entries like:
bad.guy.edu:
however, any matching "*" entries will still apply.
12/21/97 RPLAY.HOSTS(5)