process_tweets.sh
298 Bytes
#!/bin/bash
LOCK_NAME=running_lock
LOG_FILE=log-$(date +%Y%m%d).txt
if [ -a "$LOCK_NAME" ]
then
echo "Processor process is already running, skipping this run.";
else
touch $LOCK_NAME;
java -jar target/Processor.jar config_process_mongo.properties &>> logs/$LOG_FILE;
rm $LOCK_NAME;
fi