user3263234 user3263234 - 3 months ago 34
Groovy Question

Check if process is running by using PID

In Groovy, is there a way to check if the program is still running by using the PID?

Answer

yes there is a way to check if the program running ,To check for the existence of a process, use

kill -0 $PID