一个很实用的shell脚本,用来执行一个在linux下的main函数
export set LANG=GB2312cd /export/home/BaobiaoTasklib_path=/export/home/BaobiaoTask/lib for jar in `ls $lib_path/*.jar` do CLASSPATH="$CLASSPATH:""$jar" done /usr/local/bea10/jdk160_05/bin/java -classpath $CLASSPATH cn.baobiaotask.service.BaoBiaoTask $1 $2 >> logs/BaoBiaoTask.log 2>&1 &cd -