<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3698" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=356473307-26112010>Any idea?</SPAN></FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Lei, S (NSN - CN/Beijing) <BR><B>Sent:</B> 
2010-11-25 17:44<BR><B>To:</B> 'miquels@cistron.nl'; 'miquels@drinkel.ow.org'; 
'walker@netsonic.fi'; 'jukkal@despammed.com'; 
'minicom-devel@lists.alioth.debian.org'<BR><B>Subject:</B> Need 
help<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2><SPAN class=686550709-25112010>Hello Minicom 
authors &amp; supports,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=686550709-25112010></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=686550709-25112010>I am using minicom 
(version 2.1) on linux to send AT command to the modem, in minicom, I can send 
AT+CSQ command to the modem and get the response from the modem no problem, just 
as below interaction within minicom:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=686550709-25112010></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=686550709-25112010>AT+CSQ<BR>+CSQ: 12,99</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=686550709-25112010>OK</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=686550709-25112010></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=686550709-25112010>Now my question is 
if I want to write such AT command in my script and let minicom run this script 
but how to log the response from the modem to the logfile?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=686550709-25112010>For 
example,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=686550709-25112010>My script just like 
below:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=686550709-25112010></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=686550709-25112010><A 
href="mailto:root@ubuntu">root@ubuntu</A><FONT color=#0000ff>:~# more at<BR>send 
"AT+CSQ"</FONT></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=686550709-25112010>expect 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "OK" 
break<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; timeout 6 goto 
TIMEOUT<BR>}</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=686550709-25112010><FONT 
color=#0000ff>TIMEOUT:<BR>! killall -9 minicom</FONT><BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=686550709-25112010>And execute minicom 
like this way:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=686550709-25112010><A 
href="mailto:root@ubuntu">root@ubuntu</A><FONT color=#0000ff>:~# minicom -S 
at2</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=686550709-25112010></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=686550709-25112010>But if&nbsp;I want 
to put the output info <FONT color=#0000ff>"+CSQ: 12,99" </FONT><FONT 
color=#000000>to the log file, how to do it in the 
script?</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=686550709-25112010></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=686550709-25112010>Is this possible for 
minicom implementation?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=686550709-25112010></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=686550709-25112010></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=686550709-25112010>Br,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=686550709-25112010>Lei</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=686550709-25112010></SPAN></FONT>&nbsp;</DIV></BODY></HTML>