title: How to use amqsput command in shell script to push data into a queue?
body: <p>I am using following command to push some data into a Message Queue.</p>
  <pre><code> amqsput QUEUE_NAME QUEUE_MANAGER_NAME
  </code></pre>
  <p><a href="https://i.stack.imgur.com/2hIfG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2hIfG.png" alt="enter image description here" /></a></p>
  <p>Then after console available I push my required data. (just shown in the screenshot, I will copy my data now).</p>
  <p>Since there is a wait involved, Like I first I need to make sure that it connected with the queue through that queue manger then I push my data. Which successfully works.</p>
  <p>How can I do it through a shell script?</p>
  <p><strong>Update:</strong>
  In shell script I can try following</p>
  <pre><code> #!/bin/ksh 
   /opt/mqm/samp/bin/amqsput QUEUE_NAME QUEUE_MANAGER_NAME &lt; /filepath/data.txt
  </code></pre>
  <p>But I can't push string. After &lt; it expects a file.</p>
  <p>Any help?</p>