trace6.sh 260 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

source $HOME/dragonlab/etc/start.cfg

> $logpath/$date/traceroute_$1.gz

while true; do
    date +%s | gzip -c >> $logpath/$date/traceroute_$1.gz 
    traceroute6 -n $1 2> /dev/null | gzip -c >> $logpath/$date/traceroute_$1.gz 
    sleep 120
done