title: Get return value of exe in script
body: <p>I want to run a exe having command line arguments in a script. Based on the return of this exe, I need to execute further steps. Is it possible to get the return of this exe? </p>
  
  <pre><code>#!/bin/bash
  ./getDisplayWidth "FullHD"
  if [ "&lt;return value of getDisplayWidth "FullHD"&gt;" == "0" ]; then
         echo "SUCCESS"
  else
         echo "FAILED"
  fi
  </code></pre>