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