crontab定时任务里面IF判断

winterSky 2019-10-31 PM 1173℃ 0条

*/1 * * * * [ `date +\%d -d tomorrow` -eq 31 ] && echo "Good morning." >> /data/test.txt



*/1 * * * * if [`date +\%d -d tomorrow`  -eq 31]; then echo "Good morning." >> /data/test.txt fi
标签: none

非特殊说明,本博所有文章均为博主原创。

评论啦~