httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Doyle <li...@balancesoftware.com>
Subject Re: [users@httpd] How to delete a file after it's been served?
Date Fri, 13 Sep 2002 21:56:44 GMT
Thanks but this doesn't meet my criteria...  I know how to delete a file, I
guess I'm more interested in being notified that the file has been served.

In other words, can apache signal me somehow (with the filename preferably)
so that I can then delete the file.

Thanks,

Brian

On 09.13.02 2:43 PM, "Jacob Coby" <jcoby@listingbook.com> wrote:

>> Can anyone tell me how to delete a file from the server immediately after
>> it's been served?
>> 
>> I'd like to serve a client-specfic file (created in a temporary directory
> by
>> a CGI) then delete it once it's been served.
> 
> depends on the language.  most have an unlink() or exec() function that will
> do what you want.  You have to have permissions to delete it though.
> 
> Another option is to cron a job to clean up the directory every 10 min or
> so.
> 
> -Jacob
> http://www.listingbook.com
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message