PDA

View Full Version : [kubuntu] Keep a program running permanently in KDE?



x-to-tha-t
September 19th, 2008, 12:09 PM
Hi all, I'm trying to find a way to enhance the stability of a program by ensuring that if it stops running (through crash or simple close button pressed), to restart it automatically. I've tried googling for an answer, but I can't find one anywhere.

I looked into using BASH "while true" loops but haven't had much success in getting it to work.

I'd prefer if it could be done in BASH, but I could use another scripting language (e.g. Perl or Python) if needs be. Any help on this subject would be much appreciated as I am struggling a bit on it.

btw I'm using KDE 3.5.

Thanks in advance guys!!!

X-T

mike1821
September 19th, 2008, 12:32 PM
Have you checked the watch command


man watch

If you need an example let me know!

x-to-tha-t
September 19th, 2008, 12:48 PM
Thanks for the uber speedy reply! I hadn't thought of that, actually. I know the watch command quite well. I shall have a fiddle with it. Thanks again!!!

X-T