Help for this page

Select Code to Download


  1. or download this
    $module = "xyz ab[c]";
    $pid = `ps -aef|grep  \"$module\"|cut -d ' ' -f3`;
    
  2. or download this
    my $module = 'xyz abc';
    my @ppids = map {(split)[2]} grep /$module/,`ps -ef`;
    print "@ppids\n";