#!/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; } } } } td class='sub'>lcd4linux Debian packagingJonathan McCrohan
aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_xmms.c (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2004-05-28[lcd4linux @ 2004-05-28 13:51:41 by reinelt]reinelt17-748/+127
ported driver for Beckmann+Egle Mini-Terminals added 'flags' parameter to serial_init()
2004-05-27[lcd4linux @ 2004-05-27 06:29:29 by nicowallmeier]nicowallmeier1-7/+10
Moved variables to Plugin:imon / Plugin:telmon
2004-05-27[lcd4linux @ 2004-05-27 03:49:41 by reinelt]reinelt1-1/+1
Status update
2004-05-27[lcd4linux @ 2004-05-27 03:39:47 by reinelt]reinelt8-37/+70
changed function naming scheme to plugin::function
2004-05-26[lcd4linux @ 2004-05-26 11:37:35 by reinelt]reinelt21-361/+409
Curses driver ported.
2004-05-26[lcd4linux @ 2004-05-26 05:03:24 by reinelt]reinelt9-463/+333
MilfordInstruments driver ported
2004-05-25[lcd4linux @ 2004-05-25 19:54:11 by reinelt]reinelt7-53/+23
'make distcheck' bugs fixed release number changed to 0.10.0-RC1
2004-05-25[lcd4linux @ 2004-05-25 19:47:11 by reinelt]reinelt9-1670/+13
Status updated obsolete files removed
2004-05-25[lcd4linux @ 2004-05-25 14:28:46 by reinelt]reinelt1-0/+133
Changelog updated