Help for this page

Select Code to Download


  1. or download this
    top -b -n 1 | grep ^CPU
    
  2. or download this
    while(<PIPE>){
      next unless /^CPU.*? ([0-9.]+)% idle, ([0-9.]+)% user/;
    ...
      ...
      last;
    }