I'm not sure if you can limit perl specifically but you can use ulimit to set limits on what resources the shell can use and these limits are inherited by child processes. The -d option limits the size of the data segment, -v limits the size of virtual memory, -s limits the stack size and so on. ulimit is a shell-builtin so see bash's man page for all the options. I believe the values are in multiples of 1K. ulimit -a will print the current limits.
Last edited by ioerror; 05-05-2006 at 01:25 PM.
|