#!/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 IPC::Run qw(run);
###############################################################################

=pod

=head1 NAME

sensors

=head1 DESCRIPTION

Call /usr/bin/sensors with no arguments.

The script requires root permissions as on some platforms it will access a root owned device file.

=cut

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


my $outfile = sudo_out();
get_argv();
my $cmd = '/usr/bin/sensors';
my $status = run([$cmd], \undef, $outfile, $outfile);

exit !$status;

