I want to write a shell script for my Ubuntu machine, that starts a few server applications. I need this script in order to execute it from my java application. But I need an easy way to group all these server processes, in order to be able to kill all the server processes from my Java application later.
My idea is to set the parent process id from my shell script and to kill them on a later point in time with the
How can I do this all from a shell script?