Exception: Unexpected End Of File(crontab)

2022-08-09 14:38:29 浏览数 (1)

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

0 人点赞