Help for this page

Select Code to Download


  1. or download this
    open PH, "ps -ef|" or die "$!: opening pipe";
    while (<PH>) {   # retrieves output from "ps" command one line at a ti
    +me
      # .. process output--each line is $_ ..
    }
    close PH or die "$!: error closing pipe";