#!/bin/bash

while :
do
    RET=`ps -ef | grep step_up.py | grep -v grep | wc -l`
    if [ $RET -eq 0 ];then
        nohup ./step_up.py >> log-step_up.log 2>&1 &
    else
        sleep 3
    fi
done
