l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
September 2: Social Gathering
Next Installfest:
Sat. Sept. 27, 10am-6pm
Latest News:
Aug. 30: September Installfest scheduled
Page last updated:
2005 Dec 16 23:24
Events
 Meetings
 Installfests
 Demos
 Photos
Services
 Library
 LERT
 Jobs
 Documents
Interact
 Mailing Lists
 - Search
 - Archives
 Chat
About Us
 Members
 Projects
 Testimonials
 Call for Speakers
 Why Not MS?
 Finances
 Sponsors

^Home
?Search
?News & RSS
?Calendar
@Contact Us
$Buy Stuff
=Printable


The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] when is an html image "sent"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] when is an html image "sent"?



On Fri, Dec 16, 2005 at 10:28:40AM -0500, Peter Jay Salzman wrote:
> is there some kind of technique I can use to make sure the image file gets
> deleted after it's shipped off to the client?

What Rod said is typically the best (generate it inline), except you'll
have somewhat higher CPU needs as each time a customer goes back or
reloads the page you'll generate another image.  Also, you have to think
about how you'll know what the key is you stuck in the image... the page
taking the FORM must correlate with the image you generated.

You could also add a simple cron cleanup using find and continue to use
your existing script, ala:

30 * * * *      find /my/image/dir -mmin +60 | xargs -r rm -f

Which will delete any files older than 60 minutes when it finds them.
xargs -r makes xargs not run rm unless there's something for it to do.
Some might consider this a kludge, but it's simple and straight forward.

-- 
Ted Deppner
http://www.deppner.us/
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

CD Burns Wanted!

LUGOD: Linux Users' Group of Davis
1105 Kennedy Place, Suite 1, Davis, CA 95616
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!