真是坑爹,就下面的sh,竟然也写了很久! if [ `pwd` != '/usr/xx/bin/tomcat' ] then echo "rstall is not allowed in current dir : `pwd` !" return fi ./bin/rstmst.sh;../tomcat-bb/bin/rstns.sh if 的语法真麻烦, linux if 的语法真是服了! if 后面跟的是 [] , 而不是 () 擦! if 和 then 之间必须换行! ———…
http://linux.about.com/library/cmd/blcmdl1_sh.htm http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html Linux / Unix Command: shCommand LibraryNAMEbash - GNU Bourne-Again SHell SYNOPSISbash [options] [file] DESCRIPTIONBash is an sh…
same issue i faced , tried with ./unstack.sh and ./clean.sh also but couldn't fix the issue.Following step helped me to resolve this issue../unstack.sh./clean.sh rm -rf devstack folder reboot system cloned devstack codecd devstack./stack.sh ref: http…