How can I limit the resources, specifically cpu time, that my script uses? It's being run on a FreeBSD box, and is doing image modifications some rather larger (a few hundred k) images (no, they're not pr0n ;-). If I can limit the usage for just a portion of the script, or for the entire thing, that would be great.