Update live output from a Web server program on a web page
<p>More specifically, I want to get the current/latest output from my GPSd process running on my webserver (Linux/Raspberry Pi) and display the live lat/lon, speed, and course.</p>

<p>I've tried writing a CGI script that I can call (jquery) which tails the output of gpspipe and grabs the latest data, but that is kind of slow - up to 5 seconds per call.</p>

<p>Sort of similar to calling a CGI script that runs "top -b -n 1" every couple of seconds and parse the output for the data your looking for.</p>

<p>I thought someone would have a more efficient way.</p>