3

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).

Lugaxx
  • 675

1 Answers1

0

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.

gwillie
  • 1,151