Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
7c325b47
Commit
7c325b47
authored
Jan 30, 2004
by
David Anderson
Browse files
Removed unnecessary sudo call in the ping test.
parent
72a909ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
event/linktest/linktest.pl.in
View file @
7c325b47
...
...
@@ -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
";
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment