Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tsn-measures
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
tsn-measures
Commits
efaf51fb
Commit
efaf51fb
authored
Jun 09, 2020
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix file redirection in wrapper scripts when using histograms
parent
0cb8b530
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
9 deletions
+19
-9
scripts/run_client
scripts/run_client
+11
-5
scripts/run_server
scripts/run_server
+8
-4
No files found.
scripts/run_client
View file @
efaf51fb
...
...
@@ -12,7 +12,6 @@ interval=100000
# Default options
client_options
=
"-a -p 99 -f eth0"
redirect
=
""
qdisc_options
=
""
ip
=
"192.168.99."
...
...
@@ -85,7 +84,6 @@ else
else
output+
=
"_etf_
${
delta
}
"
fi
redirect+
=
">
$output
;mv
$output
~/"
fi
client_options+
=
" -i
$interval
"
...
...
@@ -94,7 +92,15 @@ echo "create_qdisc $qdisc_options";
$script_dir
/create_qdisc
$qdisc_options
;
echo
"make client"
;
cd
$script_dir
/../packet-exchange/build
;
make client
;
cd
$script_dir
cd
$script_dir
/../packet-exchange/build
;
make client
;
cd
$script_dir
;
echo
"client
$client_options
$ip
$redirect
"
;
$script_dir
/../packet-exchange/build/client
$client_options
$ip
$redirect
;
if
[
-z
"
${
use_histogram
}
"
]
;
then
echo
"client
$client_options
$ip
"
;
$script_dir
/../packet-exchange/build/client
$client_options
$ip
;
else
echo
"client
$client_options
$ip
>
$output
;mv
$output
~/"
;
$script_dir
/../packet-exchange/build/client
$client_options
$ip
>
$output
;
mv
$output
~/
;
fi
scripts/run_server
View file @
efaf51fb
...
...
@@ -9,7 +9,6 @@ usage() {
# Default options
server_options
=
"-a -p 99 -f eth0"
redirect
=
""
ip
=
"192.168.99."
while
getopts
"b:htd:g:"
opt
;
do
...
...
@@ -61,7 +60,6 @@ if [ -z "${use_histogram}" ]; then
server_options+
=
" -v"
else
output
=
"server_i
${
interval
}
"
redirect+
=
">
$output
;mv
$output
~/"
fi
if
[
-n
"
${
use_tcpdump
}
"
]
;
then
...
...
@@ -79,6 +77,12 @@ else
echo
"make server"
;
cd
$script_dir
/../packet-exchange/build
;
make server
;
cd
$script_dir
echo
"server
$server_options
$redirect
"
;
$script_dir
/../packet-exchange/build/server
$server_options
$redirect
;
if
[
-z
"
${
use_histogram
}
"
]
;
then
echo
"server
$server_options
"
;
$script_dir
/../packet-exchange/build/server
$server_options
;
else
echo
"server
$server_options
>
$output
; mv
$output
~/"
;
$script_dir
/../packet-exchange/build/server
$server_options
>
$output
;
mv
$output
~/
;
fi
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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