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