- #!/bin/sh
- datebeg=20160701
- dateend=20160731
- beg_s=`date -d "$datebeg" +%s`
- end_s=`date -d "$dateend" +%s`
- while [ "$beg_s" -le "$end_s" ]
- do
- day=`date -d @$beg_s +"%Y%m%d"`
- echo "================ rollback [ $day ] ================"
- #/home/xiaoju/local/php-fpm/bin/php run.php dm_car_order_fee_stat $day -r
- Connection reset by peer
- beg_s=$((beg_s+86400))
- done
复制代码
|