Skip to content

Commit

Permalink
update linux crontab
Browse files Browse the repository at this point in the history
  • Loading branch information
lcp0578 committed Feb 23, 2018
1 parent fbd39ed commit aaf11bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Linux/crontab.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
/etc/init.d/crond restart
- 按时间记录执行的log

* * * * * php /home/wwwroot/wateroa.kitcloud.cn/oa/bin/console admin:sms:send >> /home/wwwlogs/sms/`date +\%Y\%m\%d\%H`_sms.log 2>&1
* * * * * php /home/wwwroot/oa/bin/console admin:sms:send >> /home/wwwlogs/sms/`date +\%Y\%m\%d\%H`_sms.log 2>&1
* * * * * php /home/wwwroot/oa/bin/console admin:sms:send >> "/home/wwwlogs/sms/$(date +"\%Y\%m\%d\%H")_sms.log" 2>&1

PS:2>&1 表示把标准错误输出重定向到与标准输出一致

0 comments on commit aaf11bd

Please sign in to comment.