[geeks] Killing process by name with cron.
joshua d boyd
geeks at sunhelp.org
Sun Jul 22 14:06:08 CDT 2001
On Sun, Jul 22, 2001 at 10:54:28AM -0700, William S. wrote:
> I have my PC166MMX playing streaming audio at night
> and usually fall asleep with it running. I use a
> ncurses app called trplayer to do this. The problem
> is, in the morning cron runs various programs that max
> out the memory and lock up the whole thing. What I
> would like to do is set up a "kill" in my6 crontab to
> kill trplayer and give me some memory "elbow room".
>
> Is there any script I can write that can kill the
> process by name? Something like ps -a | grep trplayer
> | kill bla bla bla?
"killall trplayer" would work for me. I show my ignorance in not being
able to tell you if that works on anything other than linux.
--
Joshua D. Boyd
More information about the geeks
mailing list