rtdmp_fetch.sh 315 Bytes
Newer Older
wang-jinfeng committed
1 2 3 4 5 6
#!/bin/bash

source ../dmp_env.sh

today=${ScheduleTime:-$1}

WangJinfeng committed
7
start_time=$(date +"%Y-%m-%d %H:00:00" -d "-168 hours $today")
wang-jinfeng committed
8 9 10 11 12 13 14
end_time=$(date +"%Y-%m-%d %H:59:59" -d "-1 hours $today")

java -cp ../${JAR} mobvista.dmp.datasource.rtdmp.ServerMain "${start_time}" "${end_time}"

if [[ $? -ne 0 ]]; then
    exit 255
fi