run script once per hour, summary message at 6:00am

This commit is contained in:
lighttpd 2020-05-08 20:00:20 +02:00
parent 93ddb34d1f
commit b65411cedf

View File

@ -1,5 +1,6 @@
#!/bin/sh
HOUR=$(date +%H)
IFS=";"
while read DATE CURRENCY COIN PRICE FEE BUYRATE;
do
@ -29,6 +30,8 @@ do
echo "[$CURRENCY] profit: $curProfit EUR\n => sell?"
fi
fi
echo "[$CURRENCY] profit: $curProfit EUR"
if [ "0$HOUR" -eq "6" ];
then
echo "[$CURRENCY] profit: $curProfit EUR"
fi
done < $1