> Hi folks-
> I'm still having some little, annoying dbm problems, and I
> wonder if anyone has any suggestions. I also have a
> question:
>
> 1) l2h generates a directory filename/l2h####, where ####
> seems to be a process ID number. This seems to be a
> temporary directory for holding images. Is this supposed to
> be removed at the end of the run? What is the specific
> variable name for this directory? (There seem to be several
> variables like $TMP, $TMP_, $tmp, etc.)
That particular one is $TMP_PREFIX
The following line in the latex2html script
sets its value, if it doesn't already have one:
$TMP_PREFIX = "l2h" unless ($TMP_PREFIX);
> 2) I seem to have trouble in sub cleanup. I get the
> warning, "Couldn't remove ./TMP/ : Directory not empty".
Yes, this message is annoying, but harmless.
It does not happen on all systems; in particular it doesn't
happen on my DEC Alpha, with Digital Unix,
so I cannot easily track it down.
> But if I cause it to die there, instead of just having a
> warning, the ./TMP/ directory IS empty. I added the line
> print "\n Trying to unlink .$dd$TMP_$dd$_\n"}
> just after
> foreach (@files) { unlink ".$dd$TMP_$dd$_";
> and get a lot of lines similar to this:
> Trying to unlink ./TMP//verbatim_counter
>
> Trying to unlink ./TMP//IMG_PARAMS
This is *not* the same directory as the l2h**** one
above, used for image generation.
This TMP/ directory holds the database files used by Perl,
linked to various hash tables. It is usually a subfolder
of the folder containing the generated .html pages.
When the -debug switch is used, this folder and its contents
are *not* removed. This allows you to view these files and their
contents --- often a good way to located where an error in
translation is occurring, especially while developing Perl
code for use with LaTeX2HTML.
> Are the *two* slashes significant? Seems like there should
> only be one, but who knows.
Not significant, in my experience.
> 3) I suspect 1) and 2) are related, and both fall under the
> category of removing unwanted files.
Different directories, but similar code is used for cleaning
out each, when -debug was not specified.
> I'm running l2h98.1 under RedHat Linux.
>
> Thanks much!
>
Thanks for the report.
Are there any problems with the results which you think
may be related to this cleaning-up ?
Cheers,
Ross Moore