How to install gypsy?
infibit at gmail.com
Thu Aug 13 20:26:09 CEST 2009
Could solve the problem.Thank you all.
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)
> Any suggestion as to why it dint work?It compiles fine.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the devel