root/trunk/bin/name2pids @ 12543
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}' |