add:http://stackoverflow.com/questions/18155852/syntax-error-end-of-file-unexpected-expecting-then
问题:
fxtest@fxtest-ThinkStation-P300:~/sel$ sh -x ui_moniter.sh
+ command_str=python /ui_tester.py 2>>err_log.log
ui_moniter.sh: 21: ui_moniter.sh: Syntax error: end of file unexpected (expecting "then")
问题:
fxtest@fxtest-ThinkStation-P300:~/sel$ sh -x ui_moniter.sh
+ command_str=python /ui_tester.py 2>>err_log.log
ui_moniter.sh: 21: ui_moniter.sh: Syntax error: end of file unexpected (expecting "then")
解决:
sudo apt-get install dos2unix
dos2unix ui_moniter.sh
再次运行就ok了
没有评论:
发表评论