[Eug-lug] Server load problem revisited - my solution
Matthew Jarvis
mattj at bikefriday.com
Tue Jul 11 13:16:23 PDT 2006
larry price wrote:
> On 7/11/06, Matthew Jarvis <mattj at bikefriday.com> 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
mattj at bikefriday.com
More information about the EUGLUG
mailing list