Comment # 2 on bug 1197542 from
(In reply to Stelian Ionescu from comment #1)
> A quick&dirty solution would be to check a binary against a regex, and if it
> matches, parse /proc/$PID/cmdline and get the second element.

But that's based on the assumption that the shebang does not use arguments.
What if?

> $ head -n 1 ./wrzl 
> #! /usr/bin/python3 -u

> $ ps | grep wrzl
> 14212 pts/32   R+     0:48 /usr/bin/python3 -u ./wrzl


You are receiving this mail because: