[LON-CAPA-cvs] cvs: loncom / loncron

raeburn raeburn at source.lon-capa.org
Sun Oct 28 22:46:42 EDT 2018


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;
     }
 




More information about the LON-CAPA-cvs mailing list