syntax error: unexpected end of file解决方法
来源:互联网 发布:目前最流行的编程语言 编辑:程序博客网 时间:2024/04/29 20:03
syntax error: unexpected end of file解决方法
在windows环境下编辑的脚本通过Xftp上传到linux系统执行的时候会提示syntax error: unexpected end of file,脚本并没有错误。原因是:
在Windows环境下编辑的脚本在linux下会因为回车符的不通导致文件格式出错。
解决的办法之一:
notepad++编辑器在Windows环境下将文本转换为Unix格式,步骤为:用Notepad++打开脚本文件,编辑——档案格式转换——选择转换为UNIX格式,保存之后上传到linux服务器执行脚本就不会出现错误提示。也可参考网上的其他方法
0 0
- syntax error: unexpected end of file解决方法
- syntax error: unexpected end of file
- syntax error: unexpected end of file
- shell:syntax error:unexpected end of file
- syntax error:unexpected end of file
- syntax error: unexpected end of file
- syntax error, unexpected end of file
- Parse error: syntax error, unexpected end of file in
- Parse error: syntax error, unexpected end of file
- bin/sh -c:line 1 Syntax Error:unexpected end of file的解决方法
- bin/sh -c:line 1 Syntax Error:unexpected end of file的解决方法
- 在执行shell脚本时,出现“syntax error : unexpected end of file"错误的解决方法
- SHELL syntax error:unexpected end of file 提示错误
- Shelll 错误 syntax error: unexpected end of file
- Shelll 错误 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
- uva216 Getting in Line
- URAL 1303. Minimal Coverage 贪心
- APT和ET
- 初始化与清理_01
- objective-c---SEL、内存管理(引用计数器、野指针、@property参数、循环retain、autorelease)
- syntax error: unexpected end of file解决方法
- java枚举类的几种写法
- Android开发_Intent和 Intent Filter
- OPENGL GLUT库
- thinkpad t440p Ubuntu下使用中键滚屏
- 《C++编程》第二章第1题
- swift的别名和复数值类型
- shell学习(一)--hello world!
- linux内核调度器进化史:O(n)->O(1)->O(log(n))