-
Xipher_Zero
-
RE: Anyone Know Howto Create a KeepAlive Script?
-
[b]atreyu wrote:[/b]
[quote][b]Xipher_Zero wrote:[/b]
[quote]I run Gnome-Do's Docky interface on a number of systems and occasionally it can crash. I am looking for a way to write a keep alive script that will monitor gnome-do and if it crashes restart it.
Thanks[/quote]
I typically use a perl wrapper (i.e., daemon) for this sort of thing. The perl script starts up, detaches from the terminal, then loops indefinitely, waking up at some interval i specify to run my generic command. In your case, i might ps/pidof |grep Do Docky and relaunch it, if not running. If you're interested, i can dig up a skel of the perl daemon. the same thing can be done in bash, too, if that's more your thang.[/quote]
Thank you! I'd really appreciate it, I am not a programmer and a skel to start from would be a great help!
-
15 May 09
atreyu wrote:
[b]Xipher_Zero wrote:[/b]
[quote]I run Gnome-Do's Docky interface on a number of systems and occasionally it can crash. I am looking for a way to write a keep alive script that will monitor gnome-do and if it crashes restart it.
Thanks
I typically use a perl wrapper (i.e., daemon) for this sort of thing. The perl script starts up, detaches from the terminal, then loops indefinitely, waking up at some interval i specify to run my generic command. In your case, i might ps/pidof |grep Do Docky and relaunch it, if not running. If you're interested, i can dig up a skel of the perl daemon. the same thing can be done in bash, too, if that's more your thang.[/quote]
Thank you! I'd really appreciate it, I am not a programmer and a skel to start from would be a great help!