larry price wrote:
On 7/11/06, Matthew Jarvis <[EMAIL PROTECTED]> wrote:


15 22 * * * kill -9 `ps aux | grep workstation | awk '{print $2}'`


or

killall -u workstation -s 9


Ya, that's a tad bit cleaner ain't it?

I had taken my example from a script I found on www.ltsp.org. It was actually used in a somewhat different context of running when the user actually logged out. I looked at it and figured it would work just as well for my purposes, not realizing there'd be an easier way with just the killall command...

kill 'em... kill 'em all...  !

mj


Matthew S. Jarvis
IT Manager
Bike Friday - "Performance that Packs."
www.bikefriday.com
541/687-0487 x140
[EMAIL PROTECTED]
_______________________________________________
EUGLUG mailing list
euglug@euglug.org
http://www.euglug.org/mailman/listinfo/euglug

Reply via email to