eods.sh
nohup java -cp "./xxx.war/WEB-INF/lib/*:./xxx.war/WEB-INF/classes" com.gblfy.datatrans.controller.OdsDeal $1> /app/ods/logs/ods.log &
#无参
./eods.sh
#有参
./eods.sh 2020-12-22
public static void main(String args[]) {if (args.length < 1) {System.out.println("没有接收到参数");} else {System.out.println("接收脚本的参数: " + args[0]);}}