From 5108aa44f5c8a1accf42c31cb9670e5dc87ec8a0 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Mon, 4 May 2015 10:37:07 +0200 Subject: Bump dotnet.sh --- tools/dotnet.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/dotnet.sh') diff --git a/tools/dotnet.sh b/tools/dotnet.sh index ccba503..1a0b1e4 100755 --- a/tools/dotnet.sh +++ b/tools/dotnet.sh @@ -1,4 +1,9 @@ #!/usr/bin/env bash DATE="$(date +%s)" +if [ -z "$1" ] || [ -z "$2" ]; then + echo "Usage: $0 " + exit 1; +fi ./lldpdiscover.pl $1 $2 | ./draw-neighbors.pl | dot -Tpng > ${DATE}.png +echo File name: ${DATE}.png -- cgit v1.2.3