fexe — print a process or corefile's executable path
fexe prints a processe or corefile's
full executable path to standard output.
Use more verbose output, the process, executable, and /proc/PID/exe contents are displayed.
The full path of the executable to read.
Do not attempt to read the corresponding executable when loading a core file.
The system root directory under which all executables, libraries, and source are located.
Set internal debug-tracing of the specified
level (level can be NONE,
INFO, WARNING, FINE, and FINEST). If
level is absent, FINE is
assumed; if the
class is absent,
the global level is set.
In this sequence a copy of bash is created and then executed, the running processes path examined:
$ cp /bin/bash /tmp/sh $ PS1='sh$ ' /tmp/sh sh$ fexe $$ /tmp/sh sh$ rm /tmp/sh sh$ fexe -v $$ 1234 null /tmp/sh (deleted)
Report bugs to http://sourceware.org/frysk