#!/bin/sh
# Gets PIDs whose process names contain a string
# Usage: self name
ps -A -o pid,command|grep -F "$1"|awk '{print $1}'