shell判断命令是否执行成功

if  命令  ;  then
    成功
else
    失败
fi

猜你喜欢

转载自blog.51cto.com/12173069/2119799