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 <kimai...@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.lindf...@iki.fi> > >> kimaidou <kimai...@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@lists.openmoko.org >> http://lists.openmoko.org/mailman/listinfo/community >> > >
_______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community