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
-------- 以上内容纯属个人学习总结,不代表任何团体或单位。若有理解不到之处请见谅!---------