Files
apps/robot.sh
2018-10-31 10:06:43 +01:00

38 lines
535 B
Bash
Executable File

#!/bin/bash
#
# VARIABLES
#
export APPS_PATH=`dirname "$(readlink -f "$0")"`
export TMP_PATH=$APPS_PATH/../tmp
export DATA_PATH=$APPS_PATH/../data
export FLAG_PATH=$APPS_PATH/../flags
export MINUTE=`date +%M | sed 's/^0*//'`
export DATE=`date +%Y%m%d0000`
#
# Synchronize the Blockchain
#
$APPS_PATH/scripts/synchronize.sh
#
# Draw the HASHES
#
$APPS_PATH/scripts/hashes.sh
#
# Draw the BLOCKS
#
$APPS_PATH/scripts/blocks2.sh
#
# Send a TWEET
#
$APPS_PATH/scripts/tweet.sh
#
# Clean OLD DATA
#
$APPS_PATH/scripts/clean_data.sh