diff options
author | root <root@frank.tg14.gathering.org> | 2014-04-16 17:00:49 +0200 |
---|---|---|
committer | root <root@frank.tg14.gathering.org> | 2014-04-16 17:00:49 +0200 |
commit | f4c08e775289d5fce9d4ae2dc98b2ee806a24a83 (patch) | |
tree | 9d50bedbf20863d6dfde7f596d6e244d8a2d92c5 /web/stream.gathering.org/streamstats-fast.pl | |
parent | 496518da92542361eb9f3b6c1a1023f23713fed9 (diff) | |
parent | 4cd076ec9982c9dc02f248def4ef3aef59a1c2b0 (diff) |
Merge branch 'master' of https://github.com/tech-server/tgmanage
Diffstat (limited to 'web/stream.gathering.org/streamstats-fast.pl')
-rwxr-xr-x | web/stream.gathering.org/streamstats-fast.pl | 15 |
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); |