Commit 7c325b47 authored by David Anderson's avatar David Anderson
Browse files

Removed unnecessary sudo call in the ping test.

parent 72a909ea
......@@ -860,15 +860,15 @@ sub ping_node {
# standard programs ping and sudo.
# for some reason including them in the env didn't work.
if($platform eq BSD) {
$cmd = "/usr/local/bin/sudo /sbin/ping -c $send_count -q -i $send_rate -t $timeout -m $ttl $host";
$cmd = "/sbin/ping -c $send_count -q -i $send_rate -t $timeout -m $ttl $host";
} elsif($platform eq LINUX) {
$cmd = "/usr/bin/sudo /bin/ping -c $send_count -q -i $send_rate -w $timeout -t $ttl $host";
$cmd = "/bin/ping -c $send_count -q -i $send_rate -w $timeout -t $ttl $host";
}
} else {
if($platform eq BSD) {
$cmd = "/usr/local/bin/sudo /sbin/ping -c $send_count -q -i $send_rate -t $timeout $host";
$cmd = "/sbin/ping -c $send_count -q -i $send_rate -t $timeout $host";
} elsif($platform eq LINUX) {
$cmd = "/usr/bin/sudo /bin/ping -c $send_count -q -i $send_rate -w $timeout $host";
$cmd = "/bin/ping -c $send_count -q -i $send_rate -w $timeout $host";
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment