Results 1 to 1 of 1
Hallo...
I need to run this script to protect the user1 from more than 30% cpu usage.But kill is not working within awk.What should I do ??
#!/bin/bash
ps -fuU ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-11-2005 #1Just Joined!
- Join Date
- May 2005
- Posts
- 14
kill is not working within awk
Hallo...
I need to run this script to protect the user1 from more than 30% cpu usage.But kill is not working within awk.What should I do ??
#!/bin/bash
ps -fuU user1 >> psFile
awk '{ if( $3 > "30")
kill -9 $2 }' psFile
rm psFile
Help me.Thank u.


Reply With Quote
