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 pkill command.How can I do this all from a shell script? 
Set Parent Process ID from ShellScript, kill all Child Processes later
shell script;ubuntu;process
You can run instances of Appium server by noting down their PID, which you can used at a later point to kill.e.g. Appium_server_1 & instance1=$!Appium_server_2 & instance2=$!Appium_server_3 & instance3=$!...and then you can kill all instances variable with kill command.