499845b95f4db51ed0cf478ab041e4a6feb94d34
[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 5 ]
5     then
6         echo "Usage: main_flow.sh <json-file-local> <json-file-internet> <output-file-name>"
7         echo "       <json-file-local>    = JSON file of local traffic captured on WLAN interfaces"
8         echo "       <json-file-internet> = JSON file of internet traffic captured on ETH interfaces"
9         echo "       <output-file-name>   = base name for the output files"
10         echo "       <device-name>        = device name"
11         echo "       <device-mac-address> = device MAC address"
12         exit 1
13 fi
14
15 # Check result folder and create one if it does not exist yet
16 [ -d $5 ] || mkdir $5
17
18 # Run the analysis
19 python ./base_gexf_generator.py $1 $3_local.gexf
20 python ./base_gexf_generator.py $2 $3_internet.gexf
21 python ./parser/parse_packet_frequency.py $1 $3_local $4 $5
22 python ./parser/parse_packet_frequency.py $2 $3_internet $4 $5
23 gnuplot ./plot_scripts/plot_ts_graph_wemo
24