久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      linux Shell 中g(shù)rep+wc取值在shell中的結(jié)果與手動執(zhí)行結(jié)果不一致的坑

      vim restart.sh

      #!/bin/bash

      VDS=ps -ef |grep -w vds|grep -v grep|wc -l

      if [ $VDS -eq 0 ];then
      cd /usr/local/program;./linux-start.sh restart
      else
      echo "It's ok,don't restart!"
      fi

      注:如果在shell窗口直接運(yùn)行上面的變量賦值不加 -w沒有問題,但在腳本里,用 sh -x restart.sh 里來看并不一致,解決方法就是加了 -w 參數(shù),精確取值后Ok

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號