home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
OS2
/
CENV2_19.ZIP
/
PROCLIST.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-03-08
|
682b
|
18 lines
EXTPROC CEnvi
/***************************************************************************
*** ProcList.cmd - CEnvi program to list the names of processes running ***
*** ver.1 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)
}