I would like to limit CPU and ram usage per user.
So, let's say there is user john. He can run as many processes as he wants, but he also needs to have 2048 megabytes of ram and 2 CPU cores.
I know there are methods like 'ulimit' and 'nice', but I'm limited to just one command, so I would need something like this:
limiter_cmd -ram 2048 -cpu 2 screen -s 1 ./script
Also, I'm using the 'screen' command to save sessions.