#!/bin/sh

Log=./admin_bot_trade_log.out

while [ 1 ] 
do
  Cnt=`ps -ex|grep "admin_bot_trade"|grep -v grep|wc -l`
  DATE=`date +%Y%m%d-%H%M%S`
 if [ $Cnt \< 1 ]
  then
echo "$DATE : run" >> $Log
else
echo "$DATE : exe" >> $Log
    CMD=`../../../admin_bot_trade` 
fi
  sleep 60
done