#!/bin/sh cd ../ PROCESS=`pwd | xargs -i basename {}` ps auxf | grep "\./${PROCESS}" | grep -v grep | awk '{printf "%s\n", $0;}' exit 0