view raw
user3263234 user3263234 - 7 months ago 82
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