Sponsored Content
Full Discussion: Ping command
Top Forums UNIX for Dummies Questions & Answers Ping command Post 302098624 by aladdin on Tuesday 5th of December 2006 12:51:59 PM
Old 12-05-2006
Ping command

Hello Everybody:
Im the root of the system, I need to grant some limited priviliges user an acess to the ping command so he can ping some IPs with his script.
should I add the command to his path??
or what??
Thanks a lot
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

About ping command

Hi! I have small problem. I want to ping a server and the result shouldn't be printed in the browser window, just become a value. Here you can see the script that I have: <? $command="ping linux.com -t ttl -c1 | tail -1 | awk '{print $4 \" \" $5}'"; $output = system($command);... (1 Reply)
Discussion started by: Papa Deoo
1 Replies

2. IP Networking

About ping command

Hi! I have small problem. I want to ping a server and the result shouldn't be printed in the browser window, just become a value. Here you can see the script that I have: $command="ping linux.com -t ttl -c1 | tail -1 | awk '{print $4 \" \" $5}'"; $output = system($command); ... (2 Replies)
Discussion started by: Papa Deoo
2 Replies

3. IP Networking

how to use PING command efficiently

Do anyone telle me please how to use PING command to verify connection (TCP/IP) between serveurs. thanks (1 Reply)
Discussion started by: hoang
1 Replies

4. Shell Programming and Scripting

-c option in ping command

What does '-c' mean in ping command? Is this option specific to bash shell? Deepa (3 Replies)
Discussion started by: Deepa
3 Replies

5. UNIX for Dummies Questions & Answers

UNable to find ping command

HI, I am new to unix. I have used some basic commands and written some simple shell scripts in teh past. Currently, I am supposed to write a script to continuosly check if a couple of machines are up and if not to start a script. I am using a bash - 2.03. I have tryying to use the ping command... (3 Replies)
Discussion started by: swepaul
3 Replies

6. UNIX for Advanced & Expert Users

How to supply the password in a ping command ?

for i in $var; do for j in $var; do if then ssh -x -a "$host_login_name"@${i} ping -c 3 -s 3 ${j} if then printf "Success\n" else printf "Failed\n" fi fi done done Enter your box login... (2 Replies)
Discussion started by: happyrain
2 Replies

7. UNIX for Dummies Questions & Answers

help in PING and traceroute command

i cannot find a usefull ping and traceroute command from TCP to another TCP server with port. I usually do only traceroute IP and ping IP..is that enough? I wanted to check its connectivity to an IP address with port.. example: from ip 1.1.1.1 (TCP port 1234) destination 2.2.2.2 (TCP... (1 Reply)
Discussion started by: lhareigh890
1 Replies

8. AIX

Problem with 'ping' command

Hi All, I'm testing ping command on two servers. A,B,C,D are servers From A-->B: ping -c 3 -p ff -s30720 <B IP-Addres> This works fine. From C-->D: ping -c 3 -p ff -s30720 <D IP-Addres> This is NOT working and 100% packe loss :( But if I use 8700 instead of 30720 for packet size... (6 Replies)
Discussion started by: saraperu
6 Replies

9. UNIX for Dummies Questions & Answers

Help on ping command

Hi, I have a list of 500 IP address and need to ping all the IP address. I had written a script to do this and its working if the IP is valid one. If any invalid IP present, the process got hang up. Also I have tried with -c , -I and -w options, its not working. Any one help me on this... (2 Replies)
Discussion started by: Rksiva
2 Replies

10. Shell Programming and Scripting

Help with Ping command.

Hi, I have a shell script, that has to run in putty for days together. So , I need to keep the network server connection alive and running. The execution of shell script shouldn't be interrupted as it produces undesirable results. Can anyone provide me with a script ? (3 Replies)
Discussion started by: angie1234
3 Replies
sonar(6x)							XScreenSaver manual							 sonar(6x)

NAME
sonar - display a sonar scope SYNOPSIS
sonar [-ping hosts-or-subnets] [-ping-timeout int] [-delay usecs] [-speed ratio] [-sweep-size ratio] [-font-size points] [-team-a-name string] [-team-b-name string] [-team-a-count int] [-team-b-count int] [-no-dns] [-no-times] [-no-wobble] [-debug] [-fps] DESCRIPTION
This draws a sonar screen that pings (get it?) the hosts on your local network, and plots their distance (response time) from you. The three rings represent ping times of approximately 2.5, 70 and 2,000 milliseconds respectively. Alternately, it can run a simulation that doesn't involve hosts. OPTIONS
sonar understands the following options: -ping hosts-or-subnets The list of things to ping, separated by commas or spaces. Elements of this list may be: simulation Run in simulation mode instead of pinging real hosts. hostname Ping the given host. A.B.C.D Ping the given IP address. subnet Ping the local class C subnet (the nearest 255 addresses). subnet/NN Ping a different-sized local subnet: e.g., subnet/28 would ping a 4-bit subnet (the nearest 15 addresses). A.B.C.D/NN Ping an arbitrary other subnet. The IP address specifies the base address, and the part after the slash is how wide the subnet is. Typical values are /24 (for 255 addresses) and /28 (for 15 addresses). filename Ping the hosts listed in the given file. This file can be in the format used by /etc/hosts, or it can be any file that has host names as the first or second element on each line. If you use ssh, try this: sonar -ping $HOME/.ssh/known_hosts -ping-timeout int The amount of time in milliseconds the program will wait for an answer to a ping. -delay int Delay between frames, in microseconds. Default 20000. -speed ratio Less than 1 for slower, greater than 1 for faster. Default 1. -sweep-size ratio How big the glowing sweep area should be. Default 0.3. -font-size points How large the text should be. Default 10 points. -no-wobble Keep the display stationary instead of very slowly wobbling back and forth. -no-dns Do not attempt to resolve IP addresses to hostnames. -no-times Do not display ping times beneath the host names. -team-a-name string In simulation mode, the name of team A. -team-b-name string In simulation mode, the name of team B. -team-a-count int In simulation mode, the number of bogies on team A. -team-b-count int In simulation mode, the number of bogies on team B. -fps Display the current frame rate, polygon count, and CPU load. NOTES
On most Unix systems, this program must be installed as setuid root in order to ping hosts. This is because root privileges are needed to create an ICMP RAW socket. Privileges are disavowed shortly after startup (just after connecting to the X server) so this is believed to be safe: chown root:root sonar chmod u+s sonar It is not necessary to make it setuid on MacOS systems, because on MacOS, unprivileged programs can ping by using ICMP DGRAM sockets instead of ICMP RAW. In ping-mode, the display is a logarithmic scale, calibrated so that the three rings represent ping times of approximately 2.5, 70 and 2,000 milliseconds respectively. This means that if any the hosts you are pinging take longer than 2 seconds to respond, they won't show up; and if you are pinging several hosts with very fast response times, they will all appear close to the center of the screen (making their names hard to read.) SEE ALSO
X(1), xscreensaver(1), ping(8) COPYRIGHT
Copyright (C) 2000-2008 by Jamie Zawinski <jwz@jwz.org> Copyright (C) 1998 by Stephen Martin. <smartin@canada.com> Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in sup- porting documentation. No representations are made about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. AUTHORS
Stephen Martin <smartin@canada.com>, 3-nov-1998. Subnet support, etc. added by Jamie Zawinski, 17-Jul-2000. Rewritten using OpenGL instead of X11 by Jamie Zawinski, 12-Aug-2008. X Version 11 5.15 (28-Sep-2011) sonar(6x)
All times are GMT -4. The time now is 12:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy