Re: Need help with restricting number of new objects a user script can create

2006-03-22 Thread Sybren Stuvel
vj enlightened us with: > Run using lua generates: > > Fatal error: Allowed memory size of 8388608 bytes exhausted (tried > to allocate 35 bytes) in > /home/groups/d/do/doris/htdocs/lua/weblua.php on line 109 Ehm... this can also be done with Python & ulimit. Sybren -- The problem with the worl

Re: Need help with restricting number of new objects a user script can create

2006-03-22 Thread vj
I think the only option is to come up with my own mini language. Searching on google, I found several examples where people replaced python with lua for scripting. Am reading up on lua and looks very promissing. I also tried doing the following: for i=1,1 do print(i) end on: http://doris.

Re: Need help with restricting number of new objects a user script can create

2006-03-22 Thread Sybren Stuvel
vj enlightened us with: > how do I restrict the user from (inadvertently or maliciously) > creating a large number of objects which will bring down the entire > 100 nodes. Use ulimit to give them a limited amount of CPU time, memory etc. The kernel will then kill runaway processes. Sybren -- The

Need help with restricting number of new objects a user script can create

2006-03-22 Thread vj
I'm building a large infrastructure with about 30 servers (all running linux). I allow my end users to write scripts which then get broken down in smaller parts and run across the 30 servers. The results from each individual run are combined and presented back to the user. I'm currently using pyli