version 1.103.2.11, 2021/02/02 21:17:47
|
version 1.103.2.13, 2024/07/01 12:02:42
|
Line 44 use IO::Socket;
|
Line 44 use IO::Socket;
|
use HTML::Entities; |
use HTML::Entities; |
use Getopt::Long; |
use Getopt::Long; |
use GDBM_File qw(GDBM_READER); |
use GDBM_File qw(GDBM_READER); |
use Storable qw(thaw nfreeze); |
use Storable qw(thaw); |
use File::ReadBackwards; |
use File::ReadBackwards; |
use File::Copy; |
use File::Copy; |
use Sys::Hostname::FQDN(); |
use Sys::Hostname::FQDN(); |
Line 1367 sub main () {
|
Line 1367 sub main () {
|
my $wwwid=getpwnam('www'); |
my $wwwid=getpwnam('www'); |
if ($wwwid!=$<) { |
if ($wwwid!=$<) { |
print("User ID mismatch. This program must be run as user 'www'.\n"); |
print("User ID mismatch. This program must be run as user 'www'.\n"); |
my $emailto="$perlvar{'lonAdmEMail'},$perlvar{'lonSysEMail'}"; |
my $emailto="$perlvar{'lonAdmEMail'} $perlvar{'lonSysEMail'}"; |
my $subj="LON: $perlvar{'lonHostID'} User ID mismatch"; |
my $subj="LON: $perlvar{'lonHostID'} User ID mismatch"; |
system("echo 'User ID mismatch. loncron must be run as user www.' |". |
system("echo 'User ID mismatch. loncron must be run as user www.' |". |
" mail -s '$subj' $emailto > /dev/null"); |
" mail -s '$subj' $emailto > /dev/null"); |