I have two python programs running on my system, say they are called program
x and program
I want to get the pid of program
y, but not
x for my bash script. When using
pgrep python, I get the pid of both of them and don't know which is which.
Any ideas how I tell the difference between the two in a bash script?