linux shell 环境下unexpected end of file的错误解决
来源:互联网 发布:一万条数据 多少m 编辑:程序博客网 时间:2024/06/05 22:56
warning: here-document at line 5 delimited by end-of-file (wanted `EOF')
syntax error: unexpected end of file
不要用EOF,换成别的名字,比如FLAGEOF,因为EOF本身就是一个linux命令。
第二个结束标志必须顶格写,前后都不能有空格。
比如:
#!/bin/bash
/usr/bin/expect <<FLAGEOF
send "exit\r"
FLAGEOF
0 0
- linux shell 环境下unexpected end of file的错误解决
- 解决shell错误:syntax error: unexpected end of file
- SHELL syntax error:unexpected end of file 提示错误; windows下修改linux文件导致linux文件无法使用
- SHELL syntax error:unexpected end of file 提示错误
- SHELL syntax error:unexpected end of file 提示错误
- shell错误一例 syntax error: unexpected end of file
- SHELL syntax error:unexpected end of file 提示错误
- SHELL syntax error:unexpected end of file 提示错误
- Linux下面运行shell脚本出现unexpected end of file错误
- Linux Shell syntax error: unexpected end of file
- linux-shell syntax error: unexpected end of file
- 在执行shell脚本时,出现“syntax error : unexpected end of file"错误的解决方法
- Linux unexpected end of file ,`xxxx' unexpected
- liunx下syntax error: unexpected end of file错误提示
- Linux下解压hadoop2.2.0.tar.gz出错:gzip: stdin: unexpected end of file解决
- shell入门的拦路虎:syntax error: unexpected end of file
- shell:syntax error:unexpected end of file
- 解决执行脚本报syntax error: unexpected end of file或syntax error near unexpected token `fi'错误的问题
- 原码, 反码和补码
- Java网络通信:netty
- elect、poll、epoll之间的区别
- FastStone Capture 8.4 注册码
- android——PowerManagerService源码分析
- linux shell 环境下unexpected end of file的错误解决
- sql之left join、right join、inner join的区别
- 二叉树的实现以及分别使用迭代和栈来实现各种遍历的思路
- 集合类
- 本地仓库和远程仓库进行关联
- jsp页面向后台传值出现乱码的问题
- java 深入了解DTO及如何使用DTO
- 针对Jmeter编码问题简单普及一下字符编码知识
- ubuntu下进入matlab的bin目录却无法启动matlab