Exception: Unexpected End Of File(crontab)

Exception: Unexpected End Of File

 

[solphire@hadoop02 tools]$ crontab -l
1 * * * * source /etc/profile && sh ~/tools/get_free_m.sh >> ~/tools/`date +%Y-%m-%d`.log
Solution:
对特殊符号'%'进行转义即可解决!
1 * * * * source /etc/profile && sh ~/tools/get_free_m.sh >> ~/tools/`date +\%Y-\%m-\%d`.log
posted @ 2018-01-09 10:23  Sea_Sky  阅读(235)  评论(0编辑  收藏  举报

转载请注明出处! About me