I am using phing and running selenium server via ExecTask. Sometimes I need to stop running server by killing its process. Is there a possibility in phing of getting PID of process spawned in ExecTask ? Answer No, ExecTask cannot give the pid of spawned processes directly. It can only return it’s exit status and output. Maybe you can modify