I'm looking to get the version number of an app that doesn't have any kind of --version option.
I'm looking for a bash script that will start the process (it runs until killed), grep it's version number and then kill it.
Something like:
./server | grep version | kill $PID
Is that possible?