How to install gypsy?
RANJAN
infibit at gmail.com
Thu Aug 13 20:26:09 CEST 2009
Could solve the problem.Thank you all.
Regards
Sriranjan
On Thu, Aug 13, 2009 at 11:21 PM, RANJAN <infibit at gmail.com> wrote:
>
> That telnet localhost gpsd command simply makes a socket connection
>> and prints what it receives, you don't need getpass, telnetlib or gzip
>> python modules. If I'm right you could even just pipe the socket into
>> your program using bash
>>
>> ./python-program < /dev/tcp/localhost/2947
>>
>
> Yes I was looking into socket programming.This code does not output the gps
> data :
>
> import sys
> import socket
> s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
> s.bind(('127.0.0.1', 2947))
> while True:
> line = s.recv(1024)
> sys.stdout.write(line)
> sys.stdout.flush()
>
> Any suggestion as to why it dint work?It compiles fine.
>
> Sriranjan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/devel/attachments/20090813/030bfc74/attachment.htm
More information about the devel
mailing list