diff options
author | stanley lieber <stanley.lieber@gmail.com> | 2014-04-14 21:01:55 -0400 |
---|---|---|
committer | stanley lieber <stanley.lieber@gmail.com> | 2014-04-14 21:01:55 -0400 |
commit | c57fe0690fd947c8f285d6a87319c07408ada42f (patch) | |
tree | adcf6c779e9c08fdb5c22e5b74416c28595a0e03 /rc/bin/aanuke | |
parent | d8e4904d0aac4d67a1953eb8c5ad46c070bf1a94 (diff) |
aanuke: only print commands to kill the current user's aan procs
Diffstat (limited to 'rc/bin/aanuke')
-rwxr-xr-x | rc/bin/aanuke | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/bin/aanuke b/rc/bin/aanuke index 8b72554fa..336619773 100755 --- a/rc/bin/aanuke +++ b/rc/bin/aanuke @@ -1,6 +1,6 @@ #!/bin/rc rfork e -for(i in `{ps | grep -e '[ ]+aan$' | awk '{print $2}'}){ +for(i in `{psu | awk '/[ ]+aan$/ {print $2}'}){ if(! grep -s -e '[ ]+\/net(\.alt)?\/tcp\/[0-9]+\/data$' /proc/$i/fd) echo '@{echo kill>/proc/'$i'/note} # aan (idle)' } |