spc-sms/java_run/CallHpord.sh

22 lines
1.3 KiB
Bash
Raw Permalink Normal View History

#!/bin/ksh
#운영/개발
#/usr/bin/javac -classpath $CLASSPATH:. -source 1.7 -encoding UTF-8 CallHpordRunOutOfStock.java
#chmod 777 CallHpordRunOutOfStock.class
#chmod 777 CallHpord.sh
#CRONTAB
#*/1 * * * * sh /apps/appsvc/CMBO/java_run/CallHpord.sh >>/apps/appsvc/CMBO/java_run/cron.out
#* 0-5,6-23 * * * sh /apps/appsvc/CMBO/java_run/CallHpord.sh & sleep 10; sh /apps/appsvc/CMBO/java_run/CallHpord.sh & sleep 10; sh /apps/appsvc/CMBO/java_run/CallHpord.sh & sleep 10; sh /apps/appsvc/CMBO/java_run/CallHpord.sh & sleep 10; sh /apps/appsvc/CMBO/java_run/CallHpord.sh & sleep 10; sh /apps/appsvc/CMBO/java_run/CallHpord.sh
#실행
#/usr/bin/java -classpath $CLASSPATH:. CallHpordRunOutOfStock
date=`date +%Y-%m-%d`;
#echo $date;
/usr/bin/java -classpath /apps/appsvc/CMBO/java_run/.:/apps/appsvc/CMBO/workspace/sms-1.0.1/lib/ojdbc7.jar:/apps/appsvc/CMBO/workspace/sms-1.0.1/lib/commons-net-3.3.jar:/apps/appsvc/CMBO/workspace/sms-1.0.1/lib/j2ssh-core-0.2.9.jar:/apps/appsvc/CMBO/workspace/sms-1.0.1/bin:/apps/appsvc/CMBO/workspace/sms-1.0.1/lib/gson-2.2.2.jar:/apps/appsvc/CMBO/workspace/sms-1.0.1/lib/jsch-0.1.54.jar:/apps/appsvc/CMBO/workspace/sms-1.0.1/lib/commons-compress-1.3.jar:/apps/appsvc/CMBO/workspace/sms-1.0.1/lib/commons-codec-1.9.jar CallHpordRunOutOfStock >> /apps/appsvc/CMBO/java_run/cron_$date.out