Hi !<br>thanks for your help<br><br>So basically, I need 2 files :<br>* one ~/bin/loop as described in your email :<br><br>#!/bin/sh<br>while true; do<br>
 &nbsp; &nbsp;$1<br>
 &nbsp; &nbsp;sleep 2<br>
done<br><br>* And one &quot;monitorgsm&quot; with only the complete line (not splitted) such as:<br><br>#!/bin/sh<br>mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.Debug.DebugCommand AT+CSQ\r\n&quot;|tr &quot;&#39;&quot; &#39;\n&#39;|grep ^\+CSQ:|cut -d, -f1|cut -d&#39; &#39; -f2<br>
<br>then I can do in the terminal :<br>loop monitorgsm<br><br>?<br><br><br><br><br><div class="gmail_quote">2009/1/6 Timo Juhani Lindfors <span dir="ltr">&lt;<a href="mailto:timo.lindfors@iki.fi">timo.lindfors@iki.fi</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">kimaidou &lt;<a href="mailto:kimaidou@gmail.com">kimaidou@gmail.com</a>&gt; writes:<br>

&gt; mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/GSM/Device<br>
&gt; org.freesmartphone.GSM.Debug.DebugCommand &quot;AT+CSQ\r\n&quot;|tr &quot;&#39;&quot; &#39;\n&#39;|grep<br>
&gt; ^\+CSQ:|cut -d, -f1|cut -d&#39; &#39; -f2<br>
<br>
</div>Just make sure this is a complete line and not split to multiple lines<br>
as it was in your mail.<br>
<div class="Ih2E3d"><br>
&gt; I think a loop must be added...<br>
<br>
</div>my ~/bin/loop does<br>
<br>
#!/bin/sh<br>
while true; do<br>
 &nbsp; &nbsp;$1<br>
 &nbsp; &nbsp;sleep 2<br>
done<br>
<br>
so I can just &quot;loop gsm-strength&quot;, &quot;loop energy&quot;, &quot;loop<br>
temperature&quot; or &quot;loop consumption&quot;.<br>
<div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
Openmoko community mailing list<br>
<a href="mailto:community@lists.openmoko.org">community@lists.openmoko.org</a><br>
<a href="http://lists.openmoko.org/mailman/listinfo/community" target="_blank">http://lists.openmoko.org/mailman/listinfo/community</a><br>
</div></div></blockquote></div><br>