crontab命令中使用date


00 07 * * * (cd /da2/xxx/yyy; sh run.sh &> log/`date +"\%Y-\%m-\%d"`.log)

相关