#!/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; } } } } >lcd4linuxJonathan McCrohan
aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_diskstats.c (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2010-08-25added netmask_short in plugin_netinfo for CIDR notationvolker1-13/+52
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1128 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-07-16compile error fixed (thanks to Tom)michael1-19/+19
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1127 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-07-13support for Sure Electronics's 1602 LCD Display Board with USB from Mikhailmichael5-13/+50
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1126 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2010-07-11X11 driver: possibility to ignore auto-repeated KeyPress eventsmzuther1-1/+22
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1125 3ae390bd-cb1e-0410-b409-cd5a39f66f1f