Created
          September 12, 2013 15:06 
        
      - 
      
 - 
        
Save flickerfly/6539034 to your computer and use it in GitHub Desktop.  
    Get memory usage of a user
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | $user = apache | |
| ps u -u $user | awk '{total+=$3}END{print total}' | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment