home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1994 February
/
psl_9403.zip
/
psl_9403
/
DOS
/
UT_SYSTM
/
CENVI2.ZIP
/
PROCLIST.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-06-13
|
682b
|
18 lines
EXTPROC CEnvi
/***************************************************************************
*** ProcList.cmd - CEnvi program to list the names of processes running ***
*** and the ID of each process. ***
***************************************************************************/
PList = ProcessList()
assert( NULL != PList )
Count = 1 + GetArraySpan(PList)
printf(" ID Parent name FullName\n");
printf("---- ------ -------- -------------\n");
for ( i = 0; i < Count; i++ ) {
printf(" %-6d%-7d%-10s%s\n",
PList[i].id,PList[i].parent,
SplitFileName(PList[i].name).name,PList[i].name)
}