start-tcptrace.sh 292 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash 

source $HOME/dragonlab/etc/start.cfg
tracetargets=`cat $HOME/dragonlab/etc/trace.cfg`


if [ ! -d $logpath/$date ]
then
  mkdir -p $logpath/$date
fi


#Start traceroute
for i in $tracetargets; do 
    $tcptrace $i 2> /dev/null > /dev/null&
    echo "$!" >> $logpath/pids
done