l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2005 Dec 16 23:24

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
vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

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

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
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!