trace-kill 216 Bytes
Newer Older
1
2
#!/bin/bash
# kill processes trace.sh which are from yesterday - time field with alpha-text
3
ps -ef | perl -ane 'printf "kill %s # %s %s %s\n", $F[1], $F[7],$F[8],$F[9] if /trace.sh/ && $F[4] =~ /^[A-Za-z]/' | sh -x
4