I need to identify long running process and save pid of that process to a file. With the below command I am able to identify age of long running process. But after this I am struck with how to grep PID of that long running process?
js-test-driver as my testing framework. Sublime Text can only execute one command, so I am using a bash script to do the work. js-test-driver is a java application, and I would like to be able to test if it is already running. As far as I can tell, the process name is just java.