Hardware buzz - can OpenMoko help?

kimaidou kimaidou at gmail.com
Tue Jan 6 17:44:34 CET 2009


Hi
I just tested, and it worked like a charm ! Just don't forget to chmod +x
the 2 scripts
Thanks a lot !

2009/1/6 kimaidou <kimaidou at gmail.com>

> Hi !
> thanks for your help
>
> So basically, I need 2 files :
> * one ~/bin/loop as described in your email :
>
> #!/bin/sh
> while true; do
>    $1
>    sleep 2
> done
>
> * And one "monitorgsm" with only the complete line (not splitted) such as:
>
> #!/bin/sh
> mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/GSM/Device
> org.freesmartphone.GSM.Debug.DebugCommand AT+CSQ\r\n"|tr "'" '\n'|grep
> ^\+CSQ:|cut -d, -f1|cut -d' ' -f2
>
> then I can do in the terminal :
> loop monitorgsm
>
> ?
>
>
>
>
> 2009/1/6 Timo Juhani Lindfors <timo.lindfors at iki.fi>
>
>> kimaidou <kimaidou at gmail.com> writes:
>>
>> > mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/GSM/Device
>> > org.freesmartphone.GSM.Debug.DebugCommand "AT+CSQ\r\n"|tr "'" '\n'|grep
>> > ^\+CSQ:|cut -d, -f1|cut -d' ' -f2
>>
>> Just make sure this is a complete line and not split to multiple lines
>> as it was in your mail.
>>
>> > I think a loop must be added...
>>
>> my ~/bin/loop does
>>
>> #!/bin/sh
>> while true; do
>>    $1
>>    sleep 2
>> done
>>
>> so I can just "loop gsm-strength", "loop energy", "loop
>> temperature" or "loop consumption".
>>
>> _______________________________________________
>> Openmoko community mailing list
>> community at lists.openmoko.org
>> http://lists.openmoko.org/mailman/listinfo/community
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/community/attachments/20090106/03b172fa/attachment.htm 


More information about the community mailing list