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