Revision 7257
Added by Aaron Marcuse-Kubitza almost 12 years ago
bin/name2pids | ||
---|---|---|
1 |
#!/bin/sh |
|
2 |
# Gets PIDs whose process names contain a string |
|
3 |
# Usage: self name |
|
4 |
|
|
5 |
ps -A -o pid,command|grep -F "$1"|awk '{print $1}' |
|
0 | 6 |
Also available in: Unified diff
Added name2pids