Project

General

Profile

« Previous | Next » 

Revision 7257

Added name2pids

View differences:

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