Hello everyone, This is with reference to this thread: http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201602.mbox/< ca+tigkpguoppdpxgda7g3xasoxj++tdwyw7mdx36hfqjje4...@mail.gmail.com>
I've started writing a batch file to do this but an having some trouble with getting the correct process ID for solr. I am using the `wmic` command to find the Java process but getting the process ID is pretty complicated since there's no awk command in windows and getting the ID would require to first write the process details output to a file and then reading the process ID from that file. Here's the command I'm using: wmic path win32_process where (Caption='Java.exe') get commandline,processid | findstr start.jar | findstr 8983 Are there any alternatives that come to anyone's minds? On a separate note, is it absolutely necessary for the oom script to be a 'script'? Could a Java program work because I feel that that will be much easier and straightforward. This is my first attempt at contribution in terms of code so all suggestions/advices/criticisms are most welcome. Thanks! -- Regards, Binoy Dalal
