title: How to get PID of process by specifying process name and store it in a variable to use further?
body: <p>By using "ucbps" command i am able to get all PIDs</p>
  
  <pre><code> $ ucbps
  
     Userid     PID     CPU %  Mem %  FD Used   Server                  Port
     =========================================================================
  
     512        5783    2.50   16.30  350       managed1_adrrtwls02     61001
     512        8896    2.70   21.10  393       admin_adrrtwls02        61000
     512        9053    2.70   17.10  351       managed2_adrrtwls02     61002
  </code></pre>
  
  <p>I want to do it like this, but don't know how to do</p>
  
  <ol>
  <li>variable=get pid of process by processname.</li>
  <li>Then use this command kill -9 variable.</li>
  </ol>