# HG changeset patch
# User devi
# Date 1132694871 -7200
# Node ID 6452bfe549d1e7b585706da16967076b38d27388
# Parent 5e5878bd1b2054e0a1daf713c61b572957ae8694
Наброски для отправки письма после курса
diff -r 5e5878bd1b20 -r 6452bfe549d1 l3-cgi
--- a/l3-cgi Tue Nov 22 22:47:47 2005 +0200
+++ b/l3-cgi Tue Nov 22 23:27:51 2005 +0200
@@ -100,13 +100,17 @@
print "
Пользователь | ";
print "\n";
for my $host (sort keys %{$t->{host}}) {
+
+ my $prefix = "/cgi-bin/l3/current/";
+ my $suffix = "";
+
print "\n";
my $h = $t->{host}->{$host};
print "".$h->{firstname}." ".$h->{surname}." | ";
print "$host | ";
- print "root | ";
- print "".$h->{user}." | ";
- print "все | ";
+ print "root | ";
+ print "".$h->{user}." | ";
+ print "все | ";
print "\n";
print "
\n";
}
diff -r 5e5878bd1b20 -r 6452bfe549d1 l3scripts
--- a/l3scripts Tue Nov 22 22:47:47 2005 +0200
+++ b/l3scripts Tue Nov 22 23:27:51 2005 +0200
@@ -46,6 +46,7 @@
mkdir /tmp/$course-$date
find $outpath/*$date* -name \*.pdf -exec cp {} /tmp/$course-$date/ \;
cd /tmp
+rm -rf $course-$date.zip 2> /dev/null
zip -r $course-$date.zip $course-$date
mv $course-$date.zip /var/www/tmp/
mutt -s 'Сгенерированы методички' imchubin\@mail.ru < /dev/null
+mkdir /tmp/lilalo-$course-$date
+cp -R /var/www/l3 /tmp/lilalo-$course-$date
+cd /tmp
+rm -rf lilalo-$course-$date.zip 2> /dev/null
+zip -r lilalo-$course-$date.zip lilalo-$course-$date
+
+
+###send-logs
+cat >> /tmp/letters <{"student"}}) {
$Machines{$student->{"host"}} = {
"name" => "$student->{firstname} $student->{surname}",
+ "firstname" => "$student->{firstname}",
"user" => "$student->{user}",
"student" => $student,
}
@@ -310,6 +311,7 @@
email => $Machines{$m}->{"student"}->{"email"},
company => $Machines{$m}->{"student"}->{"company"},
name => $Machines{$m}->{"name"},
+ firstname => $Machines{$m}->{"firstname"},
);
if (grep { $_ eq $command} keys %Scripts) {
$_=$Scripts{"$command"};