12-05-2006
Everyone can use ping. A user always (with appropriate permissions) can execute binaries with specifying the
absolute path, even if the binary is not in his PATH. e.g /usr/sbin/ping, except for when he's jailed in a restricted shell.
Then he would get something like
bash: /usr/sbin/ping: restricted: cannot specify `/' in command names
Besides that, special privileges can be given to users with "sudo", but in case of ping, thats not necessary.
Darwin
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
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
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
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
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
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
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
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
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
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
dceping(8) dceping(8)
NAME
dceping - test the ability to contact DCE services from a local DCE client.
SYNOPSIS
dceping [-n number] [-s time] [-v] [-C] [service_name ...] required to specify the literal strings, NAMESPACE or STRING_BINDING (see nond-
cesvc(4)).
OPTIONS
-n number Specify the number of pinging cycles. Each service is tested once per cycle. The default is one pinging cycle. Specifying -n 0
makes pinging continuous.
-s time Specify time, in seconds, to wait between pinging cycles. You must specify more than one pinging cycle with the -n option in
order to use -s.
-v Run in verbose mode.
-C Ping only core DCE services. This option is ineffective if a service_name is specified on the command line.
DESCRIPTION
dceping verifies that a local DCE client can communicate with DCE and other services. It uses the RPC management interface to determine if
the DCE service is listening. The core DCE services that dceping checks include secd, cdsd, gdad, rpcd, cdsadv, dtsd, and sec_clientd.
You can ping other DCE and non-DCE services by naming them in the file, /opt/dcelocal/hpadmin/etc/nondcesvc. If you want to determine at
run time what services you want dceping to ping, you may do so using the same file. See the manpage, nondcesvc(4), for more information.
You may specify the services to ping on the command line separated by blanks. In this case, dceping does not ping any DCE core services or
the services listed in /opt/dcelocal/hpadmin/etc/nondcesvc. The service_name specified could be either a name in the DCE Cell Directory
Service Namespace or an RPC string binding. It is not
AUTHOR
dceping was developed by HP.
FILES
/opt/dcelocal/hpadmin/etc/nondcesvc
/opt/dcelocal/hpadmin/etc/wellknownif
SEE ALSO
nondcesvc(4), wellknownif(4)
HP DCE
dceping(8)