Script to find the pid of a running process.
#!/bin/sh # # Script to find the PID ps -axw | grep -i $1 | grep -v grep | grep -v fpid | awk '{print $1, $5}'