In Windows environment there is an API to obtain the path which is running a process. Is there something similar in Unix / Linux?
Or is there some other way to do th
Find the path to a process name
#!/bin/bash # @author Lukas Gottschall PID=`ps aux | grep precessname | grep -v grep | awk '{ print $2 }'` PATH=`ls -ald --color=never /proc/$PID/exe | awk '{ print $10 }'` echo $PATH