lilalo

changeset 38:466bea239d25

1) В случае, если команда является повторяющейся,
показывать только последнюю версию команды.
2) lm-install неправильно определял hostname в FreeBSD. Исправлено.
author devi
date Tue Nov 22 20:46:46 2005 +0200 (2005-11-22)
parents 219389279acb
children aa788e638a9d
files l3-frontend lm lm-install
line diff
     1.1 --- a/l3-frontend	Fri Nov 18 17:46:09 2005 +0200
     1.2 +++ b/l3-frontend	Tue Nov 22 20:46:46 2005 +0200
     1.3 @@ -513,6 +513,7 @@
     1.4  		# <command>
     1.5  
     1.6  		my ($sec,$min,$hour,$day,$mon,$year,$wday,$yday,$isdst) = localtime($cl->{time});
     1.7 +		next if $Stat{LastCommand} == $cl->{time};
     1.8  		$Stat{FirstCommand} = $cl->{time} unless $Stat{FirstCommand};
     1.9  		$Stat{LastCommand} = 0 unless defined $Stat{LastCommand};	
    1.10  		$Stat{TotalTime} += $cl->{time} - $Stat{LastCommand}
     2.1 --- a/lm	Fri Nov 18 17:46:09 2005 +0200
     2.2 +++ b/lm	Tue Nov 22 20:46:46 2005 +0200
     2.3 @@ -497,8 +497,8 @@
     2.4  
     2.5  ###install-pm
     2.6  scp PM/* $ssh_user@$host:/tmp
     2.7 -ssh $ssh_user@$host 'cd /tmp; tar xfz Term-VT102*.gz; cd Term-VT102*[^z]; perl Makefile.PL; make ; make install'
     2.8 -#ssh $ssh_user@$host 'cd /tmp; tar xfz Text-Iconv*.gz; cd Text-Iconv*[^z]; perl Makefile.PL; make ; make install'
     2.9 +#ssh $ssh_user@$host 'cd /tmp; tar xfz Term-VT102*.gz; cd Term-VT102*[^z]; perl Makefile.PL; make ; make install'
    2.10 +ssh $ssh_user@$host 'cd /tmp; tar xfz Text-Iconv*.gz; cd Text-Iconv*[^z]; perl Makefile.PL; make ; make install'
    2.11  
    2.12  ###copy-lablogs
    2.13  for i in $dirs
     3.1 --- a/lm-install	Fri Nov 18 17:46:09 2005 +0200
     3.2 +++ b/lm-install	Tue Nov 22 20:46:46 2005 +0200
     3.3 @@ -92,7 +92,8 @@
     3.4  	login_from=`who | grep "${tty##/dev/}" | awk '{print $6;}' | tr -d '()'`
     3.5  	[ -n "$bsd" ] && login_from="" #FIXME!
     3.6  	start_time=`date +%s`
     3.7 -	hostname=`hostname -f`
     3.8 +	hostname=`hostname -f 2> /dev/null`
     3.9 +	[ -n "$bsd" ] && hostname=`hostname`
    3.10  
    3.11  	cat <<INFO > $LMHOME/${session_id}.info
    3.12  <session>