title: how to connect to a remote server using ssh and getting the information
body: <p>I'm trying to write a shell script using bash. I have multiple servers and each servers have multiple apps runnings on it. Each server also has specific app scripts to check/stop/start etc.  All I want to do is that, do a ssh and connect to the remote server.
  Which I'm also able to do sucessfully and exceute the commands also..  </p>
  
  <p>In some instance I need to check some process status on a remote machine, the app sepecific scripts already does that. But using my ssh when i try to execute that script I dont get any info ( it gets executed but no info is passed ).  How do i get the information from the remote host and display on the local host here. </p>
  
  <p>Any help on this is really appreciated.</p>
  
  <p>Regards,
  Senny</p>