Commit d61a9757 authored by Olav Kvittem's avatar Olav Kvittem
Browse files

added max_hop-parameter

parent 75a026ca
......@@ -7,9 +7,15 @@ source $(dirname "${BASH_SOURCE[0]}")/../etc/start.cfg
phour=-1
hour=$(date +%H)
if test "$max_hops" != ""; then
$hop_parm="-m $max_hops"
else
$hop_parm=""
fi
while test $hour -ge $phour; do # do until midnight
date "+%s starttime %T" | gzip -c >> $logpath/$date/tcptraceroute_$1.gz
$tcptrace_bin -q 6 -n $1 2> /dev/null | gzip -c >> $logpath/$date/tcptraceroute_$1.gz
$tcptrace_bin -q 6 -n $1 $hop_parm 2> /dev/null | gzip -c >> $logpath/$date/tcptraceroute_$1.gz
sleep $traceroute_interval
sleep $(($RANDOM/3276)) # sleep 1-10 sec to distribute load
......
Supports Markdown
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