In reply to Eren.

There are UNIX commands to do the same thing, and these of course can be wrapped in shell scripts (Bourne, Korn, or whatever). You want to look at the ps command. See this link for the AIX details.

To get a list of processes and details:

lnxlgn10> ps -A -f -c

UID PID PPID CLS PRI STIME TTY TIME CMD
sascmt 29975 29974 TS 24 Nov21 pts/40 00:00:00 -ksh
root 31074 4313 TS 23 Nov20 ? 00:00:00 in.telnetd: scnqiz.chn.sas.com
root 31075 31074 TS 21 Nov20 ? 00:00:00 login -- scnqiz
scnqiz 31159 31075 TS 23 Nov20 pts/5 00:00:00 -ksh
root 31851 4313 TS 23 Nov21 ? 00:00:00 in.telnetd: d73088.na.sas.com
root 31852 31851 TS 23 Nov21 ? 00:00:00 login -- sassmo
root 32037 4313 TS 24 Nov22 ? 00:00:01 in.telnetd: d74837.na.sas.com
root 32038 32037 TS 23 Nov22 ? 00:00:00 login -- cheung
cheung 32040 32038 TS 24 Nov22 pts/34 00:00:00 -tcsh
cheung 32057 32040 TS 23 Nov22 pts/34 00:00:00 /usr/bin/screen -r
sassmo 32073 31852 TS 23 Nov21 pts/7 00:00:00 -ksh