[LA.pm] app_running status to perl

Peter Benjamin pete at peterbenjamin.com
Wed Nov 1 10:10:41 PST 2006


At 07:39 AM 11/1/2006, Randal L. Schwartz wrote:
>Peter> my @so = `ps aux`;
>Peter> my @firefox = grep( //, @so );
>
>Did you mean to put something in those //?  Doesn't make sense otherwise.

lol.  And the "if(scalar(@firefox)>0){foreach(@firefox){if(/???/){do_something)}}
but I thought I would leave something to the poster to figure out.





More information about the Losangeles-pm mailing list