aboutsummaryrefslogtreecommitdiffstats
path: root/web/stream.gathering.org/streamstats-fast.pl
diff options
context:
space:
mode:
authorroot <root@riffraff.tg14.gathering.org>2014-04-16 15:19:20 +0200
committerroot <root@riffraff.tg14.gathering.org>2014-04-16 15:21:17 +0200
commit8c37af6dd3c23762540a312b90030e922938b324 (patch)
treea6e70803c715c1277ddca670d400bab32aad1a34 /web/stream.gathering.org/streamstats-fast.pl
parentec5c01f47fd2c2389450fc0e5407876f6758fba7 (diff)
renaming from stream.tg13.gathering.org to stream.gathering.org. Easy symlink pewpew
Diffstat (limited to 'web/stream.gathering.org/streamstats-fast.pl')
-rwxr-xr-xweb/stream.gathering.org/streamstats-fast.pl15
1 files changed, 15 insertions, 0 deletions
diff --git a/web/stream.gathering.org/streamstats-fast.pl b/web/stream.gathering.org/streamstats-fast.pl
new file mode 100755
index 0000000..f4caa24
--- /dev/null
+++ b/web/stream.gathering.org/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);