in reply to process monitoring script

You need to take a look at your process table (untested):

#!/usr/bin/env perl use strict; use warnings; use Proc::ProcessTable; use feature qw(say); say grep {/emacs/i} map { $_->cmndline } @{ Proc::ProcessTable->new->table }; __END__

See also Proc::ProcessTable and Better way to search in the process table?.

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»

perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help