#!/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; } } } } s='sub right'>Jonathan McCrohan
aboutsummaryrefslogtreecommitdiffstats
path: root/dvb-t/fr-Orleans (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2009-03-22update scan file for fr-StrasbourgChristoph Pfister1-27/+15
2009-03-13combine scan file for it-VeronaChristoph Pfister1-1/+2
2009-03-13update scan files for fi-*Christoph Pfister2-4/+0
2009-03-08update scan file for ch-CitycableChristoph Pfister1-0/+4
2009-03-08update scan file for au-SunshineCoastChristoph Pfister1-9/+9