shell log

#!/bin/bash
echo 'begin...'
#docker exec -u root  scrapy_frame_new /bin/bash -c 'cd /aihuishou_spider/scrapy_frame/run_script && ./runlogistics.sh'
#docker exec -u root  scrapy_frame /bin/bash -c 'cd /aihuishou_spider/scrapy_frame/aihuishou/Base && scrapy crawl logsitcs_jd_trends'
LogDATE=`date '+%Y%m%d'`
cd /aihuishou_spider/aihuishou_spider/scrapy_frame/aihuishou/ && python3 main_run.py logsitcs_jd_trends >> /data/logistics/logs/$LogDATE"_logsitcs_jd_trends.log"
echo 'end...'

  

posted @ 2021-06-16 15:20  逐梦~前行  阅读(116)  评论(0编辑  收藏  举报