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
In reply to Re: process monitoring script
by karlgoethebier
in thread process monitoring script
by xtremenet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |