in reply to convert shell to perl
#!/usr/bin/perl -w use Proc::ProcessTable; my $t = new Proc::ProcessTable; foreach my $p (@{$t->table}){ kill SIGKILL => $p->pid if $p->cmndline and $p->cmndline =~ /netscap +e/; } [download]