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:

 latex2html paper.tex

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.

I finally gave up and wrapped everything in a shell script like this:

  TMP=/tmp/l2h_$$
  mkdir -p $TMP

  latex2html -tmp $TMP "$@"

  rm -rf $TMP

which doesn't supress the error message, but puts the cruft in a
dependable place at least, so I can delete it.

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:

  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.

Thanks,

-Matthew

-- 
Matthew Eldridge, 650/725-3648

Reply via email to