判断shell命令执行的结果



判断shell命令执行的结果
 
if [ $? -eq 0 ];then
 
  命令正确的分支
 
else
 
  命令失败的分支
 
fi
 
  www.2cto.com  

相关内容

    暂无相关文章