[prev in list] [next in list] [prev in thread] [next in thread]
List: lon-capa-cvs
Subject: [LON-CAPA-cvs] cvs: loncom / loncron
From: raeburn <raeburn () source ! lon-capa ! org>
Date: 2018-10-29 2:46:42
Message-ID: cvsraeburn1540781202 () cvsserver
[Download RAW message or body]
raeburn Mon Oct 29 02:46:42 2018 EDT
Modified files:
/loncom loncron
Log:
- Replace use of mailto (metamail package) with mail command.
metamail was in Red Hat 7.3, but is absent from Fedora, CentOS, RHEL etc.
Index: loncom/loncron
diff -u loncom/loncron:1.110 loncom/loncron:1.111
--- loncom/loncron:1.110 Thu Oct 25 03:27:22 2018
+++ loncom/loncron Mon Oct 29 02:46:41 2018
@@ -2,7 +2,7 @@
# Housekeeping program, started by cron, loncontrol and loncron.pl
#
-# $Id: loncron,v 1.110 2018/10/25 03:27:22 raeburn Exp $
+# $Id: loncron,v 1.111 2018/10/29 02:46:41 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1177,7 +1177,7 @@
$hostname=~s/[^\w\.]//g; # make sure is safe to pass through shell
my $subj="LON: Unconfigured machine $hostname";
system("echo 'Unconfigured machine $hostname.' |\
- mailto $emailto -s '$subj' > /dev/null");
+ mail -s '$subj' $emailto > /dev/null");
exit 1;
}
@@ -1188,7 +1188,7 @@
my $emailto="$perlvar{'lonAdmEMail'},$perlvar{'lonSysEMail'}";
my $subj="LON: $perlvar{'lonHostID'} User ID mismatch";
system("echo 'User ID mismatch. loncron must be run as user www.' |\
- mailto $emailto -s '$subj' > /dev/null");
+ mail -s '$subj' $emailto > /dev/null");
exit 1;
}
_______________________________________________
LON-CAPA-cvs mailing list
LON-CAPA-cvs@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic