I am using kalarm to start my download applications at night while I am sleeping. I decided to use that just because i have it open all the time for my regular alarm clock anyways. I did try kcron but it didn't load the apps and I did not feel like troubleshooting it 
It is working fine to start my applications but i have a question about running a kill script to close those applications.
my problem is I am closing frostwire which when executed loads frostwire, runfrostwire.sh, and java
I also use zend studio and would like to leave that open and that runs a separate java process. If I killall java I will of course lose java_vm, and both my java process's and I don't want that. I did notice if i kill the correct java it closes frostwire and all the associated files but the other 2 do not do this it will leave java process running. How can I in a script determine maybe the PID number and close by that or do any of you know any other programs that would make this easier?
Thank you for any tips

It is working fine to start my applications but i have a question about running a kill script to close those applications.
my problem is I am closing frostwire which when executed loads frostwire, runfrostwire.sh, and java
I also use zend studio and would like to leave that open and that runs a separate java process. If I killall java I will of course lose java_vm, and both my java process's and I don't want that. I did notice if i kill the correct java it closes frostwire and all the associated files but the other 2 do not do this it will leave java process running. How can I in a script determine maybe the PID number and close by that or do any of you know any other programs that would make this easier?
Thank you for any tips