in reply to Re: Process display
in thread Process display

Hi, Thanks for the quick response everyone. The ps -ef output is like below juserl 8593596 1 0 Oct 15 - 0:43 co_java_for03 - AIX juserl 23107 1 0 Oct 15 ? 1:15 co_java_burl9 - HPUX I think both these outputs looks same, but how perl interprets it I am not sure. Thanks, dbadmin

Replies are listed 'Best First'.
Re^3: Process display
by ikegami (Patriarch) on Oct 20, 2005 at 21:43 UTC
    if that's true, the code you presented would work. Is the path to Perl correct? Are there trailing spaces in the output?
      Hi, Thanks for all replies. I think the path also is correct, otherwise I need to get some error. When I execute the code I am not getting any output at all. The only difference which I find in the ps -ef output is the "?" in HPUX and "-" in AIX
      juserl 8593596 1 0 Oct 15 - 0:43 co_java_for03
      juserl 23107 1 0 Oct 15 ? 1:15 co_java_burl9
      I need the output of the perl script to be
      for03 burl9
        Something you say isn't true, or your perl is very broken because
        while (<DATA>) { print $1 if /\bco_java_(\w+\n)/; } __DATA__ juserl 8593596 1 0 Oct 15 - 0:43 co_java_for03 juserl 23107 1 0 Oct 15 ? 1:15 co_java_burl9
        outputs
        for03 burl9