Send traceroute stderr to stdout

OpenBSD sends its first line of information into stderr
This commit is contained in:
Jérémy Dubois 2018-07-25 19:03:40 +02:00
parent d69a015025
commit 664a424aee

View file

@ -152,7 +152,7 @@ uname -a > /home/backup/uname
## 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