Completing a new flow that will do automated analysis and graph generation for one...
[pingpong.git] / main_flow.sh
1 #!/bin/sh
2
3 # This is the main script that calls every other script that is needed for the main flow
4 if [ $# -ne 4 ]
5     then
6         echo "Usage: main_flow.sh <json-file> <output-file-name> <device-name> <device-mac-address>"
7         echo "       <json-file>    = JSON file of local/traffic captured on WLAN interfaces"
8         echo "       <output-file-name>   = base name for the output files"
9         echo "       <device-name>        = device name"
10         echo "       <device-mac-address> = device MAC address"
11         exit 1
12 fi
13
14 # Check result folder and create one if it does not exist yet
15 [ -d result ] || mkdir result
16
17 # Run the analysis
18 python ./base_gexf_generator.py $1 $2.gexf
19 python ./parser/parse_packet_frequency.py $1 $2 $3 $4
20
21