Re: Multilineedit refresh only every ~70seconds, why?
Florian Erfurth <[email protected]> Fri, 12 Jan 2007 13:41:45 +0100
| Newsgroups | gmane.comp.handhelds.opie.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, I did test to change my script. Instead of ping localhost I entered
following:
X=0
while [ true ]
do
sleep 1
echo $X
X=$((X+1))
done
Surprisling it works fine in realtime! O_o Why does it works if a single
command "ping localhost" doesn't work??? I already did try to run my
script directly from a console (i mean without my application
speech2text) , ping works well (it shows output on console in realtime
as I expected.
I think, maybe it does matters that ping is run once and echo $X every
second so the signal receivedStdout is sent every second. And with ping
localhost the signal receivedStdout isn't sent until the
"StdOut"-buffer(?) is full (this would explain why receivedStdout is
sent every ~70seconds). Could anyone of you help me, please? This is the
last f...ing problem, which I should resolve, in order to finish my
diploma thesis. :(
cu Floh
PS:
With the following script it works well, too:
X=0
while [ true ]
do
sleep 1
ping -c 1 localhost
done
Florian Erfurth schrieb:
> Florian Erfurth schrieb:
>> Hi, I wrote an application which uses oprocess in order to call a
>> shell-script. If I test it on my PC (with qvfb), it works great.
>> Unfortunatelly... if I crosscompile the same code and let run
>> directly on iPAQ, then it behaves different.
>> It should get the output from script onto multilineedit.
> I forgot to mention that the script only contains a "ping
> localhost"-line (for test purpose). So maybe the Multilineedit did
> only refresh because a definite amount of output was reached so the
> signal receivedStdout was sent. Then it could explain why it happens
> every 70seconds because ping localhost output almost identical amount
> of chars every seconds.
> I hope I did explain understandable. If not let me know please.
>
> cu Floh
_______________________________________________
http://opie.handhelds.org/cgi-bin/moin.cgi/DeveloperWikiIndex
Opie-devel mailing list
[email protected]
https://handhelds.org/mailman/listinfo/opie-devel