G'day guys
I was wondering what kind of system commands
I would use to write a program that takes 2 switch + agruments:
- for memory plus the memory time eg. -m 85
which finds any processes that amount or over then kills it, Displaying the name of process killed.
- for cpu time plus the cpu time eg. -c 97
which finds any processes that amount or over then kills it, Displaying the name of process killed.
If it does find a process that is using alot of cpu time or memory it then kills it. It sends an email to the owner of the process
Thank mate for the Help
ANy help would be Great
Chad
20040501 Edit by jdporter: Changed title from 'View current running programs - basic admin scripting!!'