first commit

This commit is contained in:
2018-09-02 10:26:34 +02:00
commit a62ea0fa19
53 changed files with 3823 additions and 0 deletions

33
methode/spline/robot.sh Executable file
View File

@@ -0,0 +1,33 @@
#!/bin/bash
flag=$TMP_PATH/spline_bot.flag
date=`date +%Y%m%d0000`
if [ -f $flag ];
then
echo "spline_bot is already running !"
exit 0
fi
touch $flag
cd $APPS_PATH/methode/spline
for BLOCK in `awk '{print $2}' $DATA_PATH/block_list.txt`
do
if [ ! -f $DATA_PATH/spline/$BLOCK.png ]
then
php robot.php $BLOCK
fi
BNAME=`grep $BLOCK $DATA_PATH/block_list.txt | awk '{print $1}'`
if [ "$BNAME" == "LAST" ]
then
touch $DATA_PATH/spline/$BLOCK.png
else
touch -t $date $DATA_PATH/spline/$BLOCK.png
fi
rm -f $DATA_PATH/hasard/$BLOCK.png
ln $DATA_PATH/spline/$BLOCK.png $DATA_PATH/hasard/$BLOCK.png
done
rm -f $flag