#!/usr/bin/perl use strict; use vars qw ($file $DELAY); ########## CONFIG $file = "lcd4linux"; # .png is appended $DELAY = 0; # delay in seconds # if delay is zero, file is sent when modified. ################# use CGI qw/:push -nph/; $| = 1; my ($mtime, $nmtime, $size, $nsize); (undef, undef, undef, undef, undef, undef, undef, $size, undef, $mtime) = stat "$file.png"; print multipart_init(-boundary=>'----------------here we go!'); while (1) { print multipart_start(-type=>'image/png'); undef $/; open(IN, "$file.png") or die("Can't read '$file.png'"); $_ = ; print $_; close(IN); print multipart_end; if ($DELAY) { sleep $DELAY; } else { W: while (1) { # sleep(1); (undef, undef, undef, undef, undef, undef, undef, $nsize, undef, $nmtime) = stat "$file.png"; if($mtime != $nmtime || $size != $nsize) { $mtime = $nmtime; $size = $nsize; last W; } } } } class='sub right'>Jonathan McCrohan
aboutsummaryrefslogtreecommitdiffstats
path: root/dvb-t/fi-Posio (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2014-05-12Updated scanned channels for Sydney, Australia.Peter Urbanec1-31/+34
2014-05-12Change Sydney FEC settings to AUTO.Peter Urbanec1-6/+6
2014-05-12Update comments to reflect the technical information provided by http://myswi...Peter Urbanec1-7/+8
2014-05-12Rename Sydney tables as part of the digital restack.Peter Urbanec2-0/+0
2014-03-26Updated scan table for au-Sydney_North_Shoreamak791-4/+4
2014-03-26UK Update for COM 7, BBC B, and Local MuxesSimon Liddicott81-647/+676
2014-03-09DTV scantables for FIOlli Salonen34-0/+170
2014-02-14Update es-AlfabiaJesus Jimenez1-5/+8