title: Gnome Terminal PID
body: <p>How can I get the PID of a TERMINAL running a process with given PID? For example, I open a new terminal and run it a process, say ". / dbserver", then I have the PID of the process using <code>pidof dbServer</code>, so I want the PID of the terminal that is running dbserver. bash.</p>