old-extraction/bin/iteye_blog.sh

17 lines
588 B
Bash

#!/bin/bash
SITE='iteye_blog'
find /home/song/hx/new_osseanextractor/target/classes -name "*.xml"|xargs rm -f
tmp='/home/song/hx/new_osseanextractor/bin/resources'
tmp='/home/song/hx/new_osseanextractor/target/classes':$tmp
tmp='/home/song/hx/new_osseanextractor/target/osseanextractor-0.0.1-jar-with-dependencies-without-resources/*':$tmp
CLASSPATH=$tmp:$CLASSPATH
JAVA_OPTS="-Xms256m -Xmx256m -Xmn128m"
echo $CLASSPATH
java $JAVA_OPTS -DlogFilePath=${SITE} -classpath $CLASSPATH net.trustie.extractor.IteyeBlog_Extractor >>/home/song/hx/new_osseanextractor/log/${SITE}.log 2>&1 &