1

Currently I have the following script running via minicom.

minicom -b 115200 -D $MODEM_DEVNODE -t vt100 -S csq.txt -C csq_results.txt < escape.txt

csq.txt

send AT+QENG="servingcell"
expect "OK"
sleep 5
send AT+COPS?
expect "+COPS: 

When I enter AT+QENG="servingcell" manually I am able to see the desired serving cell properties. However, when I run the script I see an error. Can someone explain to me why it does not like the "" in the script?

VLSI_EE_01
  • 29
  • 3
  • When quotation marks are meaningful to the scripting language, actually including a quotation character in the data requires something extra. So your question is effectively "How do I escape a quotation mark character in a minicom script file?" – Ben Voigt Feb 27 '23 at 18:37
  • The error is probably from the unpaired quotation mark in the last line. – Ben Voigt Feb 27 '23 at 18:38
  • 1
    Documentation of minicom scripting language -- https://linux.die.net/man/1/runscript – Ben Voigt Feb 27 '23 at 18:40

1 Answers1

1

I figured out how to escape the quotations

send AT+QENG=\"servingcell\"
VLSI_EE_01
  • 29
  • 3