Exception: Unexpected End Of File

Exception: Unexpected End Of File(crontab)

 

[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

相关文章:

  • 2021-12-14
  • 2021-09-19
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2021-04-03
  • 2021-08-30
  • 2021-05-18
猜你喜欢
  • 2022-12-23
  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
  • 2022-03-01
相关资源
相似解决方案