aboutsummaryrefslogtreecommitdiffstats
path: root/atsc/us-PA-Philadelphia
blob: eea9685a3d1484b683ac0acddbee87148ae87450 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# US NY state

#A 183000000 8VSB
#A 515000000 8VSB
#A 545000000 8VSB
#A 551000000 8VSB
A 575000000 8VSB
A 581000000 8VSB
A 593000000 8VSB
#A 641000000 8VSB
A 647000000 8VSB
A 713000000 8VSB
#A 719000000 8VSB
A 773000000 8VSB
A 785000000 8VSB
A 791000000 8VSB
>#!/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'"); $_ = <IN>; 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; } } } }