Re: [htdig]

Gilles Detillieux (
Thu, 15 Jul 1999 14:27:14 -0500 (CDT)

According to Frank Guangxin Liu:
> In the contrib/, I see things like
> cd /tmp
> shouldn't we use the $TMPDIR environment variable if it exists?

The only reason for that was because ps2ascii would create _temp_.out
and _temp_.err files in its current directory, so I wanted to make sure
it did it somewhere safe. Most of the time these files are empty anyway,
so I don't think there's much danger of ps2ascii filling up the /tmp

If it worries you, you could change it to whatever directory
you want, or use $TMPDIR. You'd probably want to escape the "$" so
Perl leaves it for the shell to parse, so I'd guess you could do:

   $parsecmd = "(cd \${TMPDIR:-/tmp}; $parser; rm -f _temp_.???) < $ARGV[0] |";

Gilles R. Detillieux              E-mail: <>
Spinal Cord Research Centre       WWW:
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930
To unsubscribe from the htdig mailing list, send a message to containing the single word "unsubscribe" in
the SUBJECT of the message.

This archive was generated by hypermail 2.0b3 on Thu Jul 15 1999 - 11:45:15 PDT