in reply to Re^2: Process display
in thread Process display

if that's true, the code you presented would work. Is the path to Perl correct? Are there trailing spaces in the output?

Replies are listed 'Best First'.
Re^4: Process display
by dbadmin (Initiate) on Oct 21, 2005 at 14:37 UTC
    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