Robert Klemme wrote: > No, serious: overriding Tempfile#close won't help as that has no impact on > the file deletion. If it's just for debugging, you can just copy the temp > dir contents before the script terminates. > > Alternatively you can try ObjectSpace.undefine_finalizer(tempfile) to > prevent deletion. I didn't test this, just looked at the source. But > chances are good that it works. :-) Thanks - thats taught me about ObjectSpace, and finalizers, which presumably run on object deletion, and hopefully it works, too! Graham -- The answer's always "Yes". Now, what's the question?