I hereby claim:
- I am eddy85br on github.
- I am eduardolf85 (https://keybase.io/eduardolf85) on keybase.
- I have a public key ASCa6c5hbgi6P1ok4T0fWvNSW8lSQD4JFRWXYvgKiHJrsQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env perl | |
| use warnings; | |
| use strict; | |
| use feature 'say'; | |
| die 'Pass some port, PID, string or RegExp (between quotation marks) as command arguments.'."\n" if !scalar(@ARGV); | |
| map { $_ =~ s/\"/\\\"/g; } @ARGV; |
| #!/bin/bash | |
| # Get current swap usage for all running processes | |
| # Erik Ljungstrom 27/05/2011 | |
| # | |
| ## Adapted by Jhonatan Piffer Siqueira and Eduardo Lemons Francisco (eddy85br). | |
| OVERALL=0 | |
| PROGLIST=$(ps axw -o pid,args --no-headers) | |
| while read PID ARGS; do |
| #!/bin/bash | |
| ################################################################################ | |
| ## Similar to run: ps aux | grep "RegExp" ## | |
| ## Script that receives a list o keywords and search then in "ps axw" command ## | |
| ## and returns ps's header and processes that where found with keywords. ## | |
| ## Accepts grep options, like '-c' to count number of matched processes. ## | |
| ################################################################################ | |
| if [ "$#" -eq 0 ]; then |