in reply to Perl/Cgi : how to delete file after leaving original myscript.cgi?

Can't you put both scipts into one? That way you both generate the data and deal with it and then after the page has been sent to the user, delete the data.

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

  • Comment on Re: Perl/Cgi : how to delete file after leaving original myscript.cgi?

Replies are listed 'Best First'.
Re^2: Perl/Cgi : how to delete file after leaving original myscript.cgi?
by EchoAngel (Pilgrim) on Jan 03, 2005 at 21:59 UTC
    mmm , to generate the hash data takes 5 seconds. If I included in the original, it would take longer each time the user makes a choice and have to reevaluate the script again.
      In that case, you will have to:
      • find a way to speed-up the generation of the hash; or
      • go for the "cron job" approach; or
      • do something totally different (but it is difficult to help you here as we have no idea what exactly you are trying to do -- could you post some code or perhaps a link to the web-site where the script is running?)

      CountZero

      "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law