title: unable to run commands in shell script after su mqm command,but able to run in putty?Pleae let me know how to execute.?
body: <p>My script is,</p>
  
  <pre><code>#!/bin/bash
  
  su mqm
  echo "DISPLAY QLOCAL (&lt;QUEUENAME&gt;) CURDEPTH" | runmqsc QUEUEMANAGER
  </code></pre>
  
  <hr>
  
  <p>same command works in putty but not through script.</p>