i am starting a java application on a linux box with the following command -
daemon --user=flocksnippet "java -jar snipper.jar" &
this starts a java process in background
i need to write a shell script to kill this particular process so that when i run the script it checks if the process is running if so kill it
please help me write shell script for this.