Kill process

Hi
I have application that will be binding to configuratihon file and run.
Often need to change configuration file and after that require to kill and run process again.

Here is what happen exactly:

root: ps -elf | grep test.conf
34345 test.conf
root: kill -9 34345
killed /home/app.sh -bind /opt/test.conf
root: /home/app.sh -bind /opt/test.conf &

I should run 1-ps command , 2-find PID, 3-kill it, 4-run it again in background with last message that application return in previous line with &.

Now I want to make this process easier with shellscript or through a webservice , e.g show list of this process and define bottom to kill and run each one that I want, with single click!

Currenly use �python simplehttp� for website, and script that show list of process.

Here is my script:

#!/bin/sh
cnt=0
ps -eo args |
while read prog TMP args
do
type=""
  case $prog in
  (*app);;
  (*)
    continue;;
  esac

}

echo "$app $TMP $args"

done

This is output:

/home/app.sh -bind /opt/test.conf 
/usr/app.sh -bind /var/test2.conf 
/data/app.sh -bind /etc/test3.conf 

Hint: these application and configuration locate on different path! and i can't move them.

FYI: I reading about cgi but have no idea how can create bottom in �python simplehttp� i run command in shellscript!

Do you have any idea?

Thanks,