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