#!/home/product/code/webui-perl/bin/perl -T -I /home/product/code/firmware/current/lib/perl5
#SUDOER_USERS: nobody
#SUDOER_RUNAS_USERS: root, mta
#SUDOER_TAGS: NOPASSWD, EXEC
use strict;
use warnings;
use Barracuda::Sudo::Lib;
use Barracuda::Environment;

###############################################################################

=pod

=head1 NAME

sensors

=head1 DESCRIPTION

Call /home/product/code/firmware/current/bin/get_private_key.pl with no arguments.

=cut

###############################################################################
use IPC::Run qw(run);

get_argv();
my $outfile = sudo_out();
my $undef = undef;

my $cmd = "${Barracuda::Environment::path_firmware}/bin/get_private_key.pl";

#Catch both STDOUT and STDERR. /usr/bin/sensors will output to STDERR in case of error
run([$cmd], \$undef, $outfile, $outfile);

exit $? >> 8;

