Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: convert shell to perl

by eak (Monk)
on Sep 01, 2000 at 07:55 UTC ( #30675=note: print w/replies, xml ) Need Help??


in reply to convert shell to perl

Here is a little cleaner way to handle the killing of the processes.
#!/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/; }
--eric

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://30675]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2022-01-21 21:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (59 votes). Check out past polls.

    Notices?