3
2
I have two python programs running on my system, say they are called program x
and program y
.
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?
I don't have voting privileges yet. – user3346931 – 2015-07-16T21:02:48.497