title: Sending a retrieved SMS using Python
body: <p>I am writing a Python script to read a SMS from the SIM memory, buffer it and send the same SMS to another number. I am executing this script on Telit GM862-GPS.
  The script I have written is :</p>
  
  <pre><code>import MDM
  MDM.send('AT+CMGF=1\r', 10)                      # Changing to Text mode
  MDM.send('AT+CMGR=1\r',0)                        # Reading SMS at index 1
  a = MDM.receive(10)                              # Receiving as string
  
  MDM.send('AT+CMGS="Phone no.", 129', 0)          #selecting a particular no.
  MDM.send(a, 0)                                   # sending retrieved SMS
  MDM.sendbyte(0x1A, 0)                            # sending Ctrl Z
  </code></pre>
  
  <p>But I am facing this problem:
  After executing "AT+CMGR=1 \r" command, the script doesn't execute commands after that. I have checked this by putting a simple AT command to change some value after "Read SMS" command &amp; that value doesnt get changed. I dont know for what weird reason its doing this.</p>
  
  <p>It would be really helpful if someone can help me out with this.</p>
  
  <p>Regards</p>
  
  <p><strong>Update</strong></p>
  
  <p>@ Paid nerd: Yes..thats a timeout value @ Jaime: A SMS exists in the SIM memory and it does show the SMS at index 1. The only problem I am getting is that it doesn't execute the commands which come after the "AT+CMGR" or "AT+CMGL" command. @ Foresto: I tried adding "\n" at the end but it doesn't execute the python statements after the Read SMS statement.</p>