--- loncom/loncron 2011/11/14 17:27:34 1.95 +++ loncom/loncron 2014/03/17 14:47:38 1.100 @@ -2,7 +2,7 @@ # Housekeeping program, started by cron, loncontrol and loncron.pl # -# $Id: loncron,v 1.95 2011/11/14 17:27:34 raeburn Exp $ +# $Id: loncron,v 1.100 2014/03/17 14:47:38 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -32,6 +32,7 @@ use strict; use lib '/home/httpd/lib/perl/'; use LONCAPA::Configuration; +use LONCAPA::Checksumming; use LONCAPA; use Apache::lonnet; use Apache::loncommon; @@ -270,12 +271,7 @@ sub log_machine_info { &log($fh,"
"); - open(DSH,"$perlvar{'lonDaemons'}/distprobe |"); - while (my $line="); &errout($fh); @@ -530,7 +526,7 @@ sub check_httpd_logs { sub rotate_lonnet_logs { my ($fh)=@_; &log($fh,') { - &log($fh,&encode_entities($line,'<>&"')); - $psproc++; - } - close(DSH); + &log($fh,&encode_entities(&LONCAPA::distro(),'<>&"')); &log($fh,"
'); - print "checking logs\n"; + print "Checking logs.\n"; if (-e "$perlvar{'lonDaemons'}/logs/lonnet.log"){ open (DFH,"tail -n50 $perlvar{'lonDaemons'}/logs/lonnet.log|"); while (my $line=) { @@ -574,7 +570,7 @@ sub rotate_other_logs { sub test_connections { my ($fh)=@_; &log($fh,' Connections
'); - print "testing connections\n"; + print "Testing connections.\n"; &log($fh,"