New answers tagged

3

Presumably the Ctrl-C is only killing the active conversion sub process(es). You could try using Ctrl-Z to suspend it, then kill off the suspended process with kill %1. Alternatively spin up another terminal and kill the find process from there.


1

I don't understand why you'd kill the process after it has started... But that could be accomplished with the following script considering that grep -m1 doesn't work for you: #!/bin/bash java -jar xyz.jar &> "/tmp/yourscriptlog.txt" & processnumber=$! tail -F "/tmp/yourscriptlog.txt" | awk '/Started server on port 8000/ { system("kill '$...


1

java -jar xyz.jar | grep -m1 "Started server on port 8000"


Top 50 recent answers are included