Knowledge Base


Find out if a process exists / is running from within perl

It is so easy, posting this here to be able to look it up quick in the future

#-- check if process 1525 is running
$exists = kill 0, 1525;
print "Process is running\n" if ( $exists );

Found it here:

<- Zurück zur Übersicht