社区
Linux/Unix社区
帖子详情
Syntax error: end of file unexpected (expecting "fi")
__TONG__
2014-05-25 03:16:57
unix小白一枚,试过用unix2dos命令转化过未果,请教各位大神。在ubuntu32位虚拟机上运行的。
...全文
607
3
打赏
收藏
Syntax error: end of file unexpected (expecting "fi")
unix小白一枚,试过用unix2dos命令转化过未果,请教各位大神。在ubuntu32位虚拟机上运行的。
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
__TONG__
2014-05-25
打赏
举报
回复
问题已解决- -
__TONG__
2014-05-25
打赏
举报
回复
__TONG__
2014-05-25
打赏
举报
回复
linux脚本相关:
Syntax
error
:
end
of
fi
le
un
expect
ed
(
expect
ing
“then“) 或者
Syntax
error
:
end
of
fi
le
unexp
linux脚本相关:
Syntax
error
:
end
of
fi
le
un
expect
ed
(
expect
ing
"then") 或者
Syntax
error
:
end
of
fi
le
un
expect
ed
(
expect
ing
"do") 提示错误 如题情况 1、造成该情况的原因: windows下写的脚本,windows...
Linux: scripts/build-info.sh: 31:
Syntax
error
:
end
of
fi
le
un
expect
ed
(
expect
ing
“then“) 解决方案
Linux: scripts/build-info.sh: 31:
Syntax
error
:
end
of
fi
le
un
expect
ed
(
expect
ing
"then") 解决方案
linux ubuntu bash shell报错 xxx.sh:
Syntax
error
:
end
of
fi
le
un
expect
ed
(
expect
ing
“then“)
代码: # creat log dir if it not exists logDir="./ckpt/"$timeDir if [ ! -d $logDir ]; then ...run.sh: 16: run.sh:
Syntax
error
:
end
of
fi
le
un
expect
ed
(
expect
ing
"then") 解决: 需要转换脚
Syntax
error
:
end
of
fi
le
un
expect
ed
(
expect
ing
“then“)
solve:
解决执行脚本报
syntax
error
:
un
expect
ed
end
of
fi
le
或
syntax
error
near
un
expect
ed
token `
fi
'错误的问题
先来说说第一个错误:
syntax
error
:
un
expect
ed
end
of
fi
le
,大家可以把上面那段脚本内容放到脚本文件nginx_check.sh当中(当然大家可以随便起个名字,后缀是.sh就可以了),需要注意的是最后一个"
fi
",默认是...
Linux/Unix社区
23,217
社区成员
74,540
社区内容
发帖
与我相关
我的任务
Linux/Unix社区
Linux/Unix社区 应用程序开发区
复制链接
扫一扫
分享
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章