--- mimex 2001/07/16 10:07:31 1.2 +++ mimex 2001/11/03 10:15:41 1.4 @@ -12,6 +12,9 @@ my $msgdir = "/data/store/tmp/mime$$"; # temp my $from = 'clipping-info@pliva.hr'; my $to = 'clipdir@pliva.hr'; +my $log = "/data/store/mimex.log"; + +open(LOG,">> $log") || warn "log $log: $!"; open(MAIL,"| /usr/sbin/sendmail $to") || die "sendmail: $!"; @@ -44,6 +47,7 @@ mkdir "$outdir/$md5",0755 || die "mkdir $outdir/$md5: $!"; rename $file,"$outdir/$md5/$new" || die "$file -> $md5 $new: $!"; print MAIL "\n","-" x 76,"\nhttp://store.pliva.hr/$md5/$new\n"; + print LOG "http://store.pliva.hr/$md5/$new\n"; } } }