[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Real simple tool for kde security checks
From: Dave Feustel <dfeustel () mindspring ! com>
Date: 2005-12-26 14:06:48
Message-ID: 200512260906.49201.dfeustel () mindspring ! com
[Download RAW message or body]
I noticed that kio_ slave processes hang around longer than I like
after the processes they do work for have terminated.
So I wrote this little snobol4 (http://www.snobol4.org) script to
delete the kio processes quickly.
============================
* script to extract pids of kio_, etc. processes from output of ps -ax
* and then kill those processes
input(.cmd,,,"|ps -ax")
hits = 'kio_' | 'uiserver' | 'sh -c sh'
kill = "kill -9 "
start
line = cmd :f(eod)
line hits :f(start)
line pos(0) len(5) $ a1 :f(err)
kill = kill ' ' a1 :(start)
err
output = 'invalid input: ' line :(end)
eod
output = kill
host(1,kill)
end
===============================
I don't know how much less work this would be in perl.
I expect to write more Snobol4 scripts to check security settings.
--
Lose, v., experience a loss, get rid of, "lose the weight"
Loose, adj., not tight, let go, free, "loose clothing"
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic