dbadmin has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I am very new to perl. I have a script which needs some java process running in the UNIX server. One part of the script uses perl and it executes good in HPUX, but when I use the same in AIX I am not getting any output.
the unix processes name look like this when I do ps -ef |grep co_java
co_java_xxx co_java_yyyy co_java_mmmmm etc...
The script goes like this
ps -ef | /u/gnu/bin/perl -ne 'print $2 if /.*(\bco_java_)(\w+\n)/'
The output of this perl script should gives me the process name like below in HPUX
xxx yyyy mmmmm etc...
And in AIX no output comes out. Is there any code which I can use in HPUX and AIX to display this information?
Any help is really appreciated
dbadmin
20051020 Janitored by Corion: Added formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Process display
by northwind (Hermit) on Oct 20, 2005 at 18:52 UTC | |
|
Re: Process display
by ikegami (Patriarch) on Oct 20, 2005 at 19:30 UTC | |
by Anonymous Monk on Oct 20, 2005 at 20:21 UTC | |
by ikegami (Patriarch) on Oct 20, 2005 at 21:43 UTC | |
by dbadmin (Initiate) on Oct 21, 2005 at 14:37 UTC | |
by ikegami (Patriarch) on Oct 21, 2005 at 14:53 UTC | |
|
Re: Process display
by amw1 (Friar) on Oct 20, 2005 at 18:48 UTC | |
|
Re: Process display
by blazar (Canon) on Oct 21, 2005 at 10:42 UTC |