I am not Linux bash shell expert and I just wanted to check if my java process is still running.. I have written this simple bash shell script to verify if my java process is still executing...but the output is always 'Java is done...'
#!/bin/bash
until [ ` pgrep java ` ]; do
echo Java still running...
sleep 1
done
echo Java is done...
I would like to ask what is wrong in my until statement.