#!/bin/bash
#!/usr/bin/env python
source /etc/profile
if [ $# -eq 3 ] ;then
echo "输入参数为3"
echo "开始日期:$1"
echo "结束日期:$2"
echo "同步参数:$3"
echo "开始执行数据同步"
python /data/data_sync_custom_param.py $1 $2 $3
echo "数据同步结束"
elif [ $# -eq 1 ] ;then
echo "输入参数为:1"
echo "同步参数:$1"
echo "开始执行数据同步"
python /data_sync_custom_param.py $1
fi
---------------------
原文:https://blog.csdn.net/liema2000/article/details/82289854