#!/bin/bash for i in $(pgrep -f watchPm5gOpenFile.sh); do kill -9 "$i" done