Exception: Unexpected End Of File(crontab)
2018-01-09 10:23
579 查看
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
[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
相关文章推荐
- java.net.SocketException: Unexpected end of file from server
- java.net.SocketException: Unexpected end of file from server
- java.net.SocketException: Unexpected end of file from server
- freemarker.core.ParseException: Unexpected end of file reached
- java.net.SocketException: Unexpected end of file from server
- java.net.SocketException: Unexpected end of file from server
- 异常-----freemarker.core.ParseException: Unexpected end of file reached
- freemarker.core.ParseException:Unexpected end of file reached
- freemarker.core.ParseException:Unexpected end of file reached
- VC中头文件编译错误:fatal error C1010:“unexpected end of file while looking for precompiled header directive"
- org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected end of subtree []
- 【LINUX】SHELL syntax error:unexpected end of file
- 【Linux】Shell脚本“syntax error: unexpected end of file”原因及处理
- Parse error: syntax error, unexpected end of file in
- 解决执行脚本报syntax error: unexpected end of file或syntax error near unexpected token `fi'错误的问题
- npm install 的时候 出现 unexpected end of file的问题
- syntax error: unexpected end of file windows linux换行 文件格式
- Shell 尴尬: syntax error:unexpected end of file
- error C1010: unexpected end of file while looking for precompiled header.错误处理
- fatal error RC1004: unexpected end of file found处理方法