how many times can you spot the letter e in:
q: how to track down the file a process is executed from on disk? i have a process being started on my server that appears to modify what ps/top sees, so i dont know the filename or the path of it since its hiding it (its a perl script). how can i track down where the file is on disk?

a: under /proc/<pid>/ there are various files which may help you find the culprit.


*

*cmdline is the command line used to start the process (including parameters). unfortunately, this is apparently also changed if the process modifies its own command line.

*cwd is the working dir of the process, that might help as well

*exe points to the running executable (however, for perl scripts that will be the perl interpreter, so might not be so helpful)

*status contains various information. in particular, the parent process (ppid) may be interesting; that will be the process that launched the script - might be helpful to find out who starts it.

*under fd, youll find the list of files the process has currently opened (as symlinks); that should help figure out what it does


a: on linux you can check the /proc/[pid]/exe symlink, which points to the executable.

user
The total number of "e"s in that passage is one hundred and one.
assistant