diff options
author | Kristian Lyngstol <kly@kly.no> | 2016-06-04 19:42:59 +0200 |
---|---|---|
committer | Kristian Lyngstol <kly@kly.no> | 2016-06-04 19:42:59 +0200 |
commit | a55a4a59c05993a159b1f1f659f3a42d9569ab29 (patch) | |
tree | e53f1d3878f6e66a6695af18ec178c7f244ce498 /extras | |
parent | 546f83cc05d41aed091e8895e42f75f0295ff87d (diff) |
dotnet: use a folder for output.
Diffstat (limited to 'extras')
-rwxr-xr-x | extras/tools/lldp/dotnet.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/extras/tools/lldp/dotnet.sh b/extras/tools/lldp/dotnet.sh index 40e5024..66c384c 100755 --- a/extras/tools/lldp/dotnet.sh +++ b/extras/tools/lldp/dotnet.sh @@ -1,8 +1,10 @@ #!/usr/bin/env bash set -xe DATE="$(date --iso-8601=second | sed s/:/./g)" -JSON=lolwhat-${DATE}.json +OUT=out/ +mkdir -p $OUT +JSON=${OUT}lolwhat-${DATE}.json ./lolwhat.pl $* > ${JSON} -./draw-neighbors.pl < ${JSON} | dot -Tpng > lolwhat-${DATE}.png -./draw-neighbors.pl full < ${JSON} | dot -Tpng > lolwhat-${DATE}-full.png -echo File name: lolwhat-${DATE}*png +./draw-neighbors.pl < ${JSON} | dot -Tpng > ${OUT}lolwhat-${DATE}.png +./draw-neighbors.pl full < ${JSON} | dot -Tpng > ${OUT}lolwhat-${DATE}-full.png +echo File name: ${OUT}lolwhat-${DATE}*png |