日期:2014-05-16  浏览次数:20694 次

求原因:运行shell脚本语句未执行???
在uninstall_BBSBlog这个shell脚本中
#
# stop the BBSBlog service
#
service BBSBlog stop && \
echo "stop the BBSBlog ok" | \
tee -a uninstall_BBSBlog.log || \
echo "stop the KDMonitor failed" | \
tee -a uninstall_BBSBlog .log | exit
BBSBlog 是我安装在/etc/int.d/下的自启动服务
这段代码一定会有打印的,但是log文件中什么都没打印?为什么呢?
------解决方案--------------------
考虑相对路径与绝对路径问题。