Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have processes like that:

24471 myuser     17   0     0    0    0 Z  3.0  0.0   0:00.09 [php] <defunct>
24488 myuser     17   0     0    0    0 Z  3.0  0.0   0:00.09 [php] <defunct>

How can I find file path?

Thanks.

share|improve this question

migrated from stackoverflow.com Dec 8 '11 at 21:35

This question came from our site for professional and enthusiast programmers.

    
Peek into /proc/24471/cmdline or something. –  mario Dec 8 '11 at 21:27

2 Answers 2

There is a symbolic link in /proc/$PROCESSID/exe to the executable file of a process.

Hopefully you can type

ls -l /proc/24471/exe
share|improve this answer

You may use whereis php

http://ss64.com/bash/whereis.html

share|improve this answer
    
The OP wanted to know which executed PHP script file, not which PHP executable! –  Alexandre Lavoie Apr 22 at 17:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.