At 5:01 PM -0700 16/6/98, Matthew Eldridge wrote:
>Hi,
>
>I always get this error when I run latex2html:
>
> Couldn't remove ./TMP/ : File exists
>
>I have no idea what it is talking about, because I do the following:

TMP  is a sub-subdirectory that LaTeX2HTML creates to hold files
that you, as a user, probably never want to see; e.g.

> latex2html paper.tex

by default creates   paper/  in which all the work is done.
Part of that work is stored in   paper/TMP/

At the end of the job all the files that LaTeX2HTML created inside
  paper/TMP  are removed, then  paper/TMP/  is itself removed...

...unless you use the  -debug  switch, in which case these files
are preserved so you can examine their contents.
This can be very useful in detecting where an error occured in processing.


The message    Couldn't remove ./TMP/ : File exists
occurs when the  rmdir  command  failed to remove  this  TMP/  directory,
because there was still a file, or files, inside.
I've seen this happen with files named  .nfsxxxxxxxx  ( x's are Hex/numbers )
These are not under the control of LaTeX2HTML, but disappear later anyway.
A second attempt to remove TMP usually works properly.

Conclusion:  you can almost certainly ignore these messages.

If they bother you, then  look for paper/TMP .
If it exists, look to see what is inside
 --- don't forget to check for invisible files.


>which generates a directory called 'paper' with all the appropriate
>files in it, and a subdirectory named 'l2hXXXXX' where XXXXX is the
>process id I assume.  There is no TMP directory involved.

Use  latex2html -debug  paper.tex
Then have a look at what is in  paper/ .


>The other problem this fixes is it ensures that there are no periods
>(.) in the path, which is apparently a big problem for dvips.  When
>there are periods in the path I get this message:

Yep.  dvips  has this problem.


>  Generating postscript images using dvips ...
>
>  images will be generated in
>/nobackup/tmp/installdocs.8956/private/flashg/frugl/guide/paper/l2h10009/
>
>  *** there is a `.' in $TMPDIR ;  dvips will fail
>   Set $TMP to use a /tmp directory, or rename the working directory.
>
>
>$TMPDIR=/nobackup/tmp/installdocs.8956/private/flashg/frugl/guide/paper/l2h10009
>/  ***
>
>Is there some reason a period in the path is a problem?  I'm providing
>an absolute path, not a relative path, if that is what this is trying
>to detect.

The problem is with  dvips , over which we have no control.
Yes, that is a real pain.

The most recent versions of  LaTeX2HTML  are programmed to recognise this fact,
and do their best to avoid it.
BTW, what version are you using ?
Latest is  v98.1p6  --- soon to be updated to  v98.1p7 .

If you insist on using a $TMP directory in which a '.' occurs,
then you will have problems with image-generation.
LaTeX2HTML should 'die' gracefully at the point when this is detected;
otherwise dvips may attempt to write files at unexpected places.



Hope this helps,

        Ross Moore


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ross Moore                             email: [EMAIL PROTECTED]
Mathematics Department                 phone:      +612 9850 8955
Macquarie University                     fax:      +612 9850 8114
Sydney, NSW 2109                      office:             E7A-419
Australia              WWW: http://www-math.mpce.mq.edu.au/~ross/

                ***************************

for the best in (La)TeX-nical typesetting and Web page production
join the  TeX Users Group (TUG) --- browse at  http://www.tug.org

                 <[EMAIL PROTECTED]>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Reply via email to