[LA.pm] app_running status to perl

Peter Benjamin pete at peterbenjamin.com
Tue Oct 31 22:06:56 PST 2006


At 07:49 PM 10/31/2006, David Heayn wrote:
>I'm currently trying to check if firefox is running before I edit 
>pref files with perl (mac 10).

This should work, and be portable as well.

my @so = `ps aux`;
my @firefox = grep( //, @so );




More information about the Losangeles-pm mailing list