首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

求原因:运行shell脚本语句未执行?该怎么解决

2013-01-27 
求原因:运行shell脚本语句未执行???在uninstall_BBSBlog这个shell脚本中## stop the BBSBlog service#serv

求原因:运行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文件中什么都没打印?为什么呢?
[解决办法]
考虑相对路径与绝对路径问题。

热点排行