2018-02-11 15:11:32 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-10-09 16:23:20 +08:00
|
|
|
# Detecting command that calls python 3.7
|
|
|
|
python_cmd=""
|
|
|
|
if [[ `python --version 2>&1` == *"Python 3.7"* ]]; then
|
|
|
|
python_cmd="python"
|
|
|
|
fi
|
|
|
|
if [[ `python37 --version 2>&1` == *"Python 3.7"* ]]; then
|
|
|
|
python_cmd="python37"
|
|
|
|
fi
|
|
|
|
if [[ `python3.7 --version 2>&1` == *"Python 3.7"* ]]; then
|
|
|
|
python_cmd="python3.7"
|
|
|
|
fi
|
|
|
|
|
2019-10-24 15:02:50 +08:00
|
|
|
./monkey_island/bin/mongodb/bin/mongod --dbpath ./monkey_island/bin/mongodb/db &
|
2019-10-23 19:46:59 +08:00
|
|
|
${python_cmd} ./monkey_island.py
|