Linux 下后台脚本启动Jar程序

 Nohup后台输出运行日志

cd /home/zeze/jar/WeiboPost

java -jar WeiboAutoPost.jar ../configuration.properties >> ./nohup.out 2>&1 &

echo WeiboPost succeed

cd ../WeiboCrawl

java -jar WeiboCommentCrawl.jar ../configuration.properties >> ./nohup.out 2>&1 &

echo WeiboCommentCrawl succeed