On Thu, 13 Mar 2003 22:01:22 +0000 BenEBoy mail@psychoferret.freeserve.co.uk wrote:
On Thursday 13 March 2003 12:10, Keith Watson wrote:
Problem is I've set chbg as an application to startup with Gnome when I log in, trouble with that is that each time I log out and then back in another copy of chbg starts up.
How do I prevent multiple copies of chbg starting up?
How about writing a script that takes the output of ps, seaches for an existing chbg and only runs it if there isn't one already running? Using GAWK perhaps?
My gawk is a bit rusty so I can't provide an example :-) Just think of me as the ideas man...
That was my initial train if thought also, and fortunately good ol' Aeleen Frisch even gives a pretty close example in Essential Sys. Admin.
It seems a bit unsubtle/inelegant/whatever. Heigh Ho! (now where did I leave that 5kg club hammer?) :o)
Keith