- 论坛徽章:
- 0
|
忘了跟大家分享,这个问题的解决方法如下(Solaris env):
#0 20 3-31 * 1,2,3,5,6 /users/test DAILY > /tmp/daily_refresh.log 2>&1
0 20 * * 1,2,3,5,6 if [ `date +\%d` -gt 2 ]; then /users/test DAILY; fi
#0 16 3-31 * 0 /users/test DAILY > /tmp/daily_refresh.log 2>&1
0 16 * * 0 if [ `date +\%d` -gt 2 ]; then /users/test DAILY; fi
#0 20 2 * 1,2,3,5,6,0 /users/test DAILY > /tmp/daily_refresh.log 2>&1
0 20 * * 1,2,3,5,6,0 if [ `date +\%d` -eq 2 ]; then /users/test DAILY; fi
#0 20 1 * 3 /users/test DAILY > /tmp/daily_refresh.log 2>&1
0 20 * * 3 if [ `date +\%d` -eq 1 ]; then /users/test DAILY; fi
|
|