Is there a way to restrict CPU time (duration) for all processes which are invoked by executables that are located in a certain directory?

I would like to be able to auto-kill all applications which certain users start in their home directories after a certain amount of time (for example after 10 minutes).


What you want is in this answer and this answer

The only thing I'll add is the -u user option for ps eg:

ps -u <username>

to search processes started by a user.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.