redirects stderr to stdout for traceroute

OpenBSD outputs a line to stderr when starting a traceroute.
It makes cron to send an email.
This commit is contained in:
Jérémy Lecour 2016-10-04 11:33:03 +02:00 committed by Jérémy Lecour
parent 29cd250c73
commit bc72111e13

View file

@ -135,7 +135,7 @@ mkdir -p -m 700 /home/backup
## Dump network routes with mtr and traceroute (warning: could be long with aggressive firewalls)
for addr in 8.8.8.8 www.evolix.fr travaux.evolix.net; do
mtr -r $addr > /home/backup/mtr-${addr}
traceroute -n $addr > /home/backup/traceroute-${addr}
traceroute -n $addr > /home/backup/traceroute-${addr} 2>&1
done
## Dump process with ps