This file is indexed.

/usr/sbin/octo_commander is in octopussy 1.0.6-0ubuntu1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/perl -w

=head1 NAME

octo_commander - Octopussy Commander program

=head1 SYNOPSIS

octo_commander 

=head1 DESCRIPTION

octo_commander is the program used by the Octopussy Project to launch command from WebInterface

=cut

use strict;
use warnings;
use Readonly;

use Octopussy;
use Octopussy::Cache;

Readonly my $PROG_NAME => 'octo_commander';

exit if (!Octopussy::Valid_User($PROG_NAME));

my $cache = Octopussy::Cache::Init($PROG_NAME);
while (1)
{
    my $commands = $cache->get('commands');
    $cache->remove('commands');    # TODO If cache set between get & remove ?
    foreach my $c (@{$commands})
    {
        if (my ($command, $args) = $c =~ /^(\/usr\/sbin\/octo_\S+)(.*)/)
        {
            system "$command $args";
        }
    }
    sleep 1;
}

=head1 AUTHOR

Sebastien Thebert <octo.devel@gmail.com>

=head1 SEE ALSO

octo_extractor, octo_parser, octo_uparser, octo_reporter, octo_rrd, 
octo_scheduler

=cut