aboutsummaryrefslogtreecommitdiffstats
path: root/web/stream.gathering.org/pre-tg15/streamstats-fast.pl
diff options
context:
space:
mode:
authorroot <root@einstein.tg15.gathering.org>2015-03-30 22:24:29 +0200
committerroot <root@einstein.tg15.gathering.org>2015-03-30 22:24:29 +0200
commit31a664b20ba24e1b3348d2bf51cb89fc380b45ea (patch)
tree60fd1adf605d28d6df65c739d1a7e6fbefba0859 /web/stream.gathering.org/pre-tg15/streamstats-fast.pl
parent9ac80abffae12797da3baceca18a1706adbd2e0c (diff)
Anton: Cleaned up the folderstructure a bit, also reworked the front page with some CSS, auto-play, video source swap (al tho not inline, but hey), some config parameters as well as some todo-removes if we dont need the conf.
Diffstat (limited to 'web/stream.gathering.org/pre-tg15/streamstats-fast.pl')
-rwxr-xr-xweb/stream.gathering.org/pre-tg15/streamstats-fast.pl15
1 files changed, 15 insertions, 0 deletions
diff --git a/web/stream.gathering.org/pre-tg15/streamstats-fast.pl b/web/stream.gathering.org/pre-tg15/streamstats-fast.pl
new file mode 100755
index 0000000..f4caa24
--- /dev/null
+++ b/web/stream.gathering.org/pre-tg15/streamstats-fast.pl
@@ -0,0 +1,15 @@
+#! /usr/bin/perl
+use strict;
+use warnings;
+use POSIX;
+use CGI qw(fatalsToBrowser);
+
+my $port_spec = CGI::param('port');
+my $proto_spec = CGI::param('proto');
+my $audience_spec = CGI::param('audience');
+
+print CGI::header(-type=>'image/png');
+
+# I'm sure this is really safe
+system("/srv/stream.tg13.gathering.org/fix_count.pl | /srv/stream.tg13.gathering.org/streamstats - $port_spec $proto_spec $audience_spec");
+#system("/srv/stream.tg13.gathering.org/streamstats", "/home/techserver/cleaned_datacube.log", $port_spec, $proto_spec, $audience_spec);