in reply to Re: pp --clean does not seem to work (it does)
in thread pp --clean does not seem to work

Thanks Monks,

I just ran few tests and realised that --clean works on 'normal' conditions. The temp-xxx is cleaned after normal exit.

However, if the script crashed or killed for whatsoever reason, the temp-xxx contents are retained and not cleaned up. So probably have to deal that separately, like, to clean up explicitly in an END block or so...

  • Comment on Re^2: pp --clean does not seem to work (it does)

Replies are listed 'Best First'.
Re^3: pp --clean does not seem to work (it does)
by Lotus1 (Vicar) on Dec 14, 2015 at 19:11 UTC

    I just tried both a die() and a divide by zero in my test script and both times the contents of Temp\par-123... were cleared out. I'm testing on Windows. How are you killing the process?

      How are you killing the process?

      On unix systems, kill -9 (i.e. sending SIGKILL) can not be caught, the process is terminated without a chance to save any data or to clean up. See also signal(7) and POSIX.

      Alexander

      --
      Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)