#!/bin/bash
if [ ! -d "./log" ]; then
    mkdir "./log"
    echo "Directory './log' created."
else
    echo "Directory './log' already exists."
fi
rm -rf log/simulation-pjibot_patrol.out log/simulation-pjibot_patrol.log
nohup python2 simulation-pjibot_patrol.py > log/simulation-pjibot_patrol.out 2>&1 &