forked from p15670423/monkey
17 lines
440 B
Bash
17 lines
440 B
Bash
#!/bin/bash
|
|
|
|
# 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
|
|
|
|
./monkey_island/bin/mongodb/bin/mongod --dbpath ./monkey_island/bin/mongodb/db &
|
|
${python_cmd} ./monkey_island.py
|