Kill a process when another is started

Hi,
I have a program that logs in automaticaly. When it looses network connectivity it generates a restart process that lasts for 1-2 seconds and tries to run the program again. This results in a log on screen. There is a monitor program that detects if the program is running about once a minute, if it is not it automaticaly logs back in using scripts to bypass the log on splash screen. Since the program and log on screen share the same name, monitor thinks it is running and will not try to restart it.

What I am trying to do is have a program that looks to see if the restart process is running/ has ran, wait about 10 seconds for the program to generate the log on screen, and then kill the process. This will allow the monitor program to restart the program with the log on scripts. We are trying to keep the user from having to do anything.

Tanks in advance for your help,
Kevin
Topic archived. No new replies allowed.