title: get pid of process - linux
body: <p>I try to launch an app within it's path and get it's process id:</p>
  
  <pre><code>(cd /opt/server/TrackServer/release &amp;&amp; ./TrackServer&amp;) &amp;&amp; echo $!
  </code></pre>
  
  <p>but I always get wrong PID.</p>
  
  <p>Ie i get:</p>
  
  <pre><code>$ (cd /opt/server/TrackServer/release &amp;&amp; ./TrackServer&amp;) &amp;&amp; echo $!
  5078
  $ ps aux | grep TrackServer
  user    5250  0.6  0.0 153340  7824 pts/0    S    20:09   0:00 ./TrackServer
  user    5253  0.0  0.0  14868   976 pts/0    S+   20:09   0:00 grep --color=auto TrackServer
  </code></pre>
  
  <p>how can I invoke the process within its path and get it's pid?</p>