From: Thomas Leitner Date: 2004-07-29T23:51:45+09:00 Subject: Re: ulimit alike in ruby? | Dear ruby-hackers, | | is there any way to set resource limits in ruby? I am starting a | program (popen) that should not create files > 1 MB, so I think that | the linux/unix syscall setrlimit would be the best way for that. | Sure I can write an sh-wrapper or c-wrapper around the ruby process, | but I'd like to avoid that. But I haven't found any kernel#ulimit or | alike methods in ruby. You could write an extension in C that calls the setrlimit function. Have a look at pickaxe and the section named "Extending Ruby". *hth*, Thomas