lina wrote, on 01/21/12 07:20: > Hi, > > I think the jobs were hanged up there, > > top showed that: > load average: 120.86, 128.51, 133 > Tasks: 315 total, 122 running, 193 sleeping, 0 stopped, 0 zombie > Cpu(s): 0.0% us, 0.0% sy, 100.0% ni, 0.0% id, 0.0% wa, 0.0% hi, 0.0% si > Mem: 114496596k total, 84993724k used, 29502872k fre > > before I could use the ps au | grep nvt | awk '{print $2} | sed > 's/^.*$/ kill -9 &/g' > kill.sh and run kill.sh.
Since you are using awk anyhow, how about ps au | awk '/nvt/ {print "kill -9 "$2}' > kill.sh > > now ps au does not show me this info any more. > Which info do you mean? > > $ ps au > USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND > root 8085 0.0 0.0 2544 16 tty1 Ss+ 2010 0:00 /sbin/mingetty > root 8086 0.0 0.0 2544 16 tty2 Ss+ 2010 0:00 /sbin/mingetty > lina 27327 0.5 0.0 53980 1600 pts/1 Ss 14:14 0:00 -bash > lina 27354 0.0 0.0 5464 792 pts/1 R+ 14:14 0:00 ps au > > what's the alternative choice, > > Thanks, > > -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/jfe5j6$946$1...@dough.gmane.org