A bash shell script tool for looking into the process list in a shutdown time script. See: <http://joels-programming-fun.blogspot.jp/2014/08/this-is-demonstration-of-way-to.html>

形式
Shell
投稿日時
2014-08-17 02:01
公開期間
無期限
  1. #! /bin/bash
  2. # Don't forget to do this:
  3. # chmod ug+x,o-rwx findps.sh
  4. # Note that bash may be heavier than you want to run at shutdown time.
  5. argc=$#
  6. limit=10
  7. if ((argc<1))
  8. then
  9. echo "Usage $0 <search-term> [<limit-count>]"
  10. echo " Default limit count is $limit"
  11. exit
  12. fi
  13. if ((argc>1)) ; then limit=$2 ; fi
  14. for (( ct = 0; ct < limit; ++ct ))
  15. do
  16. ps wwaux | grep $1
  17. sleep 1
  18. done
ダウンロード 印刷用表示

このコピペの URL

JavaScript での埋め込み

iframe での埋め込み

元のテキスト