#!/bin/sh BEG=`date --date ‘-7 days‘ +%Y%m%d` END=`date --date ‘-1 days‘ +%Y%m%d` #BEG=‘20140509‘ #END=‘20140515‘ LOG="init-search‘-$BEG-$END‘.log" sh init_search.sh $BEG $END # > $LOG File="search-$BEG-$END.tar.gz" python "sendMail.py" $File ‘M station and TV search data ‘ #1>>$LOG 2>&1
原文:http://www.cnblogs.com/xiangwengao/p/4095470.html