title: How to capture the output of one shell script into other in unix
body: <p>I am running one shell script <strong>run_sftp.sh</strong> 
  whose output will be either "done" or "failed" 
  and I am calling this script into another script which will execute some command if <strong>run_sftp.sh</strong> output is "done" </p>
  
  <pre><code>If [ Output(run_sftp.sh) = 'done' ] then
    echo "run"
  else
    "Stop running"
  fi 
  </code></pre>
  
  <p>This is the algorithm. Please suggest. </p>