0
下面的代码行工作在我的数据库服务器(UNIX)xmllint没有shell脚本
xmllint --noout CI_PRD_TESTING.XML
内工作,但同样没有shell脚本
#!/bin/bash
export FOO="/home/data/others"
echo $FOO
vari=`ls -t1 CI_PRD*.XML | head -1`
xmllint --noout $vari
它给我的内部工作以下错误。为什么会表现这样的...
[[email protected] others]$ bash validate_xml.sh
/home/data/others
"arning: failed to load external entity "CI_PRD_TESTING.XML
[[email protected] others]$
看看错误消息是如何环绕的?您的脚本中有DOS行尾。删除它们。请参阅['bash'标记信息wiki](https://stackoverflow.com/tags/bash/info)中的第1项。 –
@EtanReisner我已经从脚本中删除了CD,仍然输出相同。 – Mrk
你做了什么?什么“光盘”? –