Knowledge Base

01.09.11

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:
http://www.perlhowto.com/check_if_a_process_is_running
Thanx!



<- Zurück zur Übersicht