title: Sending AT command through bash script
body: <p>I'm testing some satellital modem with a USB-to-serial (RS232) converter. I have already tested the "connection", and it works. I'm using minicom and am able to capture data sent from one terminal (running one bash script that echoes random numbers) to another.</p>
  
  <p>To make this modem send things, I must send it AT commands to it. What is the best way to do it? Should I just echo the AT command from my bash script? Or is there any better way?</p>
  
  <pre><code>#!/bin/bash
  while true;
    do 
      number=$RANDOM
      echo $number &gt;/dev/ttyUSB0
      sleep 4     
    done
  </code></pre>
  
  <p>Thank you for your time!</p>